From abf585bab1e2f0cc829cc9dd896e8d86fe1f0025 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 23 Jan 2021 00:59:05 +0900 Subject: [PATCH] fix lint --- src/client/sw/sw.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/client/sw/sw.ts b/src/client/sw/sw.ts index 6466caa998..f60d109379 100644 --- a/src/client/sw/sw.ts +++ b/src/client/sw/sw.ts @@ -83,9 +83,7 @@ self.addEventListener('push', ev => { if (!i18n) return pushesPool.push({ type, body }); const n = await composeNotification(type, body, i18n); - if (n) return self.registration.showNotification(...n); - })); }); //#endregion @@ -105,9 +103,7 @@ self.addEventListener('message', ev => { if (otype === 'object') { if (ev.data.msg === 'initialize') { lang = ev.data.lang; - set('lang', lang); - fetchLocale(); } }