summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-30 00:19:33 +0800
committeraltaf-creator <dev@altafcreator.com>2025-12-30 00:19:33 +0800
commit2495f6ca950bf23e6e4c394297268258554c48d2 (patch)
tree7832628625b127db95317d55ae12f581be1264b3 /frontend
parent72e08569e6e9529b1d95c3a6632f0c3f5fec1a2d (diff)
IT'S ALMOST WORKING
Diffstat (limited to 'frontend')
-rw-r--r--frontend/sw.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/sw.js b/frontend/sw.js
index 5dcf564..187a66b 100644
--- a/frontend/sw.js
+++ b/frontend/sw.js
@@ -1,7 +1,7 @@
self.addEventListener('push', (e) => {
const data = e.data.json();
console.log(data);
- self.registration.showNotification("notif received", {
- body: "received",
+ self.registration.showNotification(data.title, {
+ body: data.body,
});
});