修复worker弹窗问题(诗笺)
This commit is contained in:
parent
3126c79a7d
commit
4ecdab3c61
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue