From 1af481f977cb56ce44179b8df479a42095dcb3c2 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 29 Dec 2025 23:43:30 +0800 Subject: NOTIF TEST, temp end dates --- frontend/sw.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'frontend') 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, + }); +}); -- cgit v1.2.3