fix lint
This commit is contained in:
parent
c44c95d6dd
commit
abf585bab1
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue