try to fix sw

This commit is contained in:
creeper123123321 2021-03-07 13:42:16 -03:00
parent 957a306d6e
commit c6a0496927

View File

@ -1,5 +1,5 @@
self.addEventListener("notificationclick", event => {
console.log("On notification click: ", event);
console.log("On notification click: " + event);
event.preventDefault();
event.notification.close();
self.clients.matchAll({type: "window"}).then(it => it.forEach(c => c.postMessage({tag: event.notification.tag, action: event.action})));