fix
This commit is contained in:
parent
7b0bc962c9
commit
a9025e7c59
|
@ -202,6 +202,7 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
|
|||
}
|
||||
|
||||
export async function createEmptyNotification() {
|
||||
return new Promise<void>(async res => {
|
||||
if (!swLang.i18n) swLang.fetchLocale();
|
||||
const i18n = await swLang.i18n as I18n<any>;
|
||||
const { t } = i18n;
|
||||
|
@ -214,7 +215,8 @@ export async function createEmptyNotification() {
|
|||
}
|
||||
);
|
||||
|
||||
return new Promise<void>(res => {
|
||||
res();
|
||||
|
||||
setTimeout(async () => {
|
||||
for (const n of
|
||||
[
|
||||
|
@ -224,7 +226,6 @@ export async function createEmptyNotification() {
|
|||
) {
|
||||
n.close();
|
||||
}
|
||||
res();
|
||||
}, 1000);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue