diff options
Diffstat (limited to 'templates/notifications_panel.php')
| -rw-r--r-- | templates/notifications_panel.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/notifications_panel.php b/templates/notifications_panel.php index 98a04e3..574a295 100644 --- a/templates/notifications_panel.php +++ b/templates/notifications_panel.php @@ -3,7 +3,8 @@ use Digitigrade\Model\Notification; $notifications = Notification::findAllForUser($user, 50); ?> -<div id="notificationsPanel"> +<div id="notificationsPanel" + _="on load js if (Notification.permission == 'default') Notification.requestPermission() end"> <h2><?= __('notifications.heading') ?></h2> <?php call_template('live_notifications_updater', ['since' => new \DateTimeImmutable()]); ?> <div class="items"> |
