aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/notifications_panel.php
diff options
context:
space:
mode:
authorwinter2025-01-26 19:47:22 +0000
committerwinter2025-01-26 19:47:22 +0000
commit7d3f35b1895dd3fe08af0f5fe403ff339acd2456 (patch)
tree26c59b9b18793f9678cc115420762aa7695c2071 /templates/notifications_panel.php
parentdf5ead7bd4adac405811b91fed1e5f0b3775206b (diff)
send desktop notifications
Diffstat (limited to 'templates/notifications_panel.php')
-rw-r--r--templates/notifications_panel.php3
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">