diff options
| author | winter | 2025-03-23 00:09:04 +0000 |
|---|---|---|
| committer | winter | 2025-03-23 00:09:04 +0000 |
| commit | 6d06ec92a35b8d38c24f246944d40431e8ec6f4f (patch) | |
| tree | f9893d04d34de72d5f294f9bd18ae5e782de5f21 | |
| parent | 7a6db5333858d0effc205688ad39392ff363970a (diff) | |
fix the multiple notifications on navigate back bug
| -rw-r--r-- | templates/notification.php | 5 |
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/> |
