This commit is contained in:
tamaina 2021-01-23 00:59:05 +09:00
parent c44c95d6dd
commit abf585bab1

View file

@ -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();
}
}