From ec0e79e779e012ed66b5690cd5629745bcf8f3cc Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sat, 29 Nov 2025 23:56:41 +0700 Subject: notifiaction panel, implemented some status codes --- frontend/start.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'frontend/start.js') 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(); +} -- cgit v1.2.3