chet novoe
This commit is contained in:
@@ -5,8 +5,8 @@ self.addEventListener("push", (event) => {
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
const options = {
|
const options = {
|
||||||
body: data.body,
|
body: data.body,
|
||||||
icon: "/icon.png",
|
icon: data.icon,
|
||||||
badge: "/badge.png",
|
badge: data.badge,
|
||||||
data: data.url
|
data: data.url
|
||||||
};
|
};
|
||||||
event.waitUntil(self.registration.showNotification(data.title, options));
|
event.waitUntil(self.registration.showNotification(data.title, options));
|
||||||
|
|||||||
Reference in New Issue
Block a user