From e0499b1253e63463529875811464798a4ae67b52 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 29 Dec 2025 23:24:10 +0800 Subject: notif notif --- frontend/permissionrequest.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/permissionrequest.js b/frontend/permissionrequest.js index 97258d9..1146ed6 100644 --- a/frontend/permissionrequest.js +++ b/frontend/permissionrequest.js @@ -1,7 +1,12 @@ const notif = document.getElementById("notif-panel"); const notbtn = document.getElementById("notbtn"); - +(async function () { + cookie = await cookieStore.get("subscription_endpoint"); + if (cookie) { + notif.style.display = "none"; + } +})(); notbtn.addEventListener("click", () => requestPermission()) async function requestPermission() { -- cgit v1.2.3