summaryrefslogtreecommitdiff
path: root/frontend/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/sw.js')
-rw-r--r--frontend/sw.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/sw.js b/frontend/sw.js
index f5d5fa8..9653990 100644
--- a/frontend/sw.js
+++ b/frontend/sw.js
@@ -2,8 +2,7 @@ self.addEventListener('push', (e) => {
const data = e.data.json();
console.log(data);
alert(data);
- self.registration.showNotification(data.title, {
- body: data.body,
- icon: data.icon,
+ self.registration.showNotification("notif received", {
+ body: "received",
});
});