Skip to content

Commit

Permalink
Merge branch 'develop' into fix#7146
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Feb 15, 2024
2 parents ab4f3ec + d56b9e5 commit 524a01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 524a01a

Please sign in to comment.