aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/notification.php
diff options
context:
space:
mode:
authorwinter2025-03-23 00:09:04 +0000
committerwinter2025-03-23 00:09:04 +0000
commit6d06ec92a35b8d38c24f246944d40431e8ec6f4f (patch)
treef9893d04d34de72d5f294f9bd18ae5e782de5f21 /templates/notification.php
parent7a6db5333858d0effc205688ad39392ff363970a (diff)
fix the multiple notifications on navigate back bug
Diffstat (limited to 'templates/notification.php')
-rw-r--r--templates/notification.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/notification.php b/templates/notification.php
index 0a54a6f..0c2c90e 100644
--- a/templates/notification.php
+++ b/templates/notification.php
@@ -23,8 +23,9 @@
<div class="notifTimestamp">
<?= format_datetime($timestamp) ?>
</div>
- <div hidden class="notifier" <?php if ($unread ?? false): ?> _="
- on load
+ <div hidden class="notifier" <?php if ($unread ?? false): ?> data-sent-notification="false" _="
+ on load if my @data-sent-notification is 'false'
+ set my @data-sent-notification to 'true'
set title to innerText of previous .title
set body to innerText of previous .body
set icon to @src of previous <img/>