add spaces
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// public/service-worker.js
|
||||
|
||||
self.addEventListener("push", (event) => {
|
||||
console.log(event)
|
||||
|
||||
const data = event.data.json();
|
||||
console.log(data);
|
||||
|
||||
const options = {
|
||||
body: data.body,
|
||||
icon: data.icon,
|
||||
@@ -16,7 +16,7 @@ self.addEventListener("push", (event) => {
|
||||
|
||||
self.addEventListener('notificationclick', function (event) {
|
||||
// console.log("Notification click event received."); // Сообщение об активации обработчика
|
||||
console.log("Notification data:", event.notification.data); // Проверка данных уведомления
|
||||
|
||||
|
||||
event.notification.close(); // Закрываем уведомление
|
||||
// console.log(event)
|
||||
|
||||
Reference in New Issue
Block a user