From 94b9f0b0d4c1f3a508bede669b3d912af6e70a2d Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 23 Jan 2021 01:10:12 +0900 Subject: [PATCH] fix --- src/client/sw/sw.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/sw/sw.ts b/src/client/sw/sw.ts index f60d109379..6c7ab17852 100644 --- a/src/client/sw/sw.ts +++ b/src/client/sw/sw.ts @@ -14,7 +14,7 @@ const apiUrl = `${location.origin}/api/`; let lang: string; let i18n: I18n; -const pushesPool = [] as any[]; +let pushesPool: any[] = []; //#endregion //#region Startup @@ -120,6 +120,7 @@ async function fetchLocale() { const n = await composeNotification(type, body, i18n); if (n) self.registration.showNotification(...n); } + pushesPool = []; //#endregion } //#endregion