summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/permissionrequest.js7
1 files changed, 6 insertions, 1 deletions
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() {