diff options
Diffstat (limited to 'frontend/start.js')
| -rw-r--r-- | frontend/start.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/start.js b/frontend/start.js index f760f11..4c860e5 100644 --- a/frontend/start.js +++ b/frontend/start.js @@ -10,3 +10,6 @@ function requestPermission() { OneSignal.Notifications.requestPermission(); } const notif = document.getElementById("notif-panel"); +if (Notification.permission == 'granted') { + notif.remove(); +} |
