diff --git a/src/service-worker.ts b/src/service-worker.ts index 0b1c40288f5..76501ea21f1 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -105,7 +105,7 @@ self.addEventListener("push", async function (event) { if (event.data) { const data = JSON.parse(event.data.text()); - if (["MESSAGE", "PUSH_MESSAGE"].includes(data?.type)) { + if (["PUSH_MESSAGE"].includes(data?.type)) { self.clients.matchAll().then((clients) => { clients[0].postMessage(data); });