diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-30 00:12:32 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-30 00:12:32 +0800 |
| commit | 0ce8e84a0300234f9f2694b71691a2f1e3d7e3ac (patch) | |
| tree | b0ced46a2edc7f83b8835f9019919440b05bd1ac | |
| parent | 843aa7465239544cb9e103a364699aeac193240d (diff) | |
pofrijvbghx
| -rw-r--r-- | frontend/sw.js | 5 |
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", }); }); |
