修复worker弹窗问题(诗笺)

This commit is contained in:
kuangthree 2024-03-10 13:59:47 +08:00
parent 3126c79a7d
commit 4ecdab3c61
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ new Promise(resolve => {
navigator.serviceWorker.addEventListener('message', e => { navigator.serviceWorker.addEventListener('message', e => {
console.log(e); console.log(e);
}); });
registration_1.update(); registration_1.update().catch(console.error);
} catch (e_1) { } catch (e_1) {
console.log('serviceWorker加载失败: ', e_1); console.log('serviceWorker加载失败: ', e_1);
} }