summaryrefslogtreecommitdiff
path: root/frontend/sw.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-29 23:43:30 +0800
committeraltaf-creator <dev@altafcreator.com>2025-12-29 23:43:30 +0800
commit1af481f977cb56ce44179b8df479a42095dcb3c2 (patch)
tree95ff96e924e0640babb3ef94802e7b612627c8e1 /frontend/sw.js
parent160aa541938f0ab5864554679bda50899079ea10 (diff)
NOTIF TEST, temp end dates
Diffstat (limited to 'frontend/sw.js')
-rw-r--r--frontend/sw.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/sw.js b/frontend/sw.js
index e69de29..bf38ae2 100644
--- a/frontend/sw.js
+++ b/frontend/sw.js
@@ -0,0 +1,7 @@
+self.addEventListener('push', (e) => {
+ const data = e.data.json();
+ self.registration.showNotification(data.title, {
+ body: data.body,
+ icon: data.icon,
+ });
+});