Merge pull request #1057 from universe-st/PR-Branch

修复worker弹窗问题(诗笺)
This commit is contained in:
Spmario233 2024-03-10 14:43:58 +08:00 committed by GitHub
commit a011fb9f38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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