This commit is contained in:
tamaina 2021-01-23 00:59:05 +09:00
parent c44c95d6dd
commit abf585bab1
1 changed files with 0 additions and 4 deletions

View File

@ -83,9 +83,7 @@ self.addEventListener('push', ev => {
if (!i18n) return pushesPool.push({ type, body }); if (!i18n) return pushesPool.push({ type, body });
const n = await composeNotification(type, body, i18n); const n = await composeNotification(type, body, i18n);
if (n) return self.registration.showNotification(...n); if (n) return self.registration.showNotification(...n);
})); }));
}); });
//#endregion //#endregion
@ -105,9 +103,7 @@ self.addEventListener('message', ev => {
if (otype === 'object') { if (otype === 'object') {
if (ev.data.msg === 'initialize') { if (ev.data.msg === 'initialize') {
lang = ev.data.lang; lang = ev.data.lang;
set('lang', lang); set('lang', lang);
fetchLocale(); fetchLocale();
} }
} }