This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch pwa
in repository https://gitbox.apache.org/repos/asf/echarts-website.git
The following commit(s) were added to refs/heads/pwa by this push:
new 58bdf2c8 feat(pwa): add error log
58bdf2c8 is described below
commit 58bdf2c8fdb7f442605713756a5662f8e4f153fe
Author: plainheart <[email protected]>
AuthorDate: Tue Apr 19 22:24:16 2022 +0800
feat(pwa): add error log
---
.scripts/pwa/main.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.scripts/pwa/main.js b/.scripts/pwa/main.js
index 5f7966e2..634cff5c 100644
--- a/.scripts/pwa/main.js
+++ b/.scripts/pwa/main.js
@@ -42,6 +42,9 @@ window.addEventListener('load', () => {
onNeedRefresh() {
console.log('New content available')
showToast()
+ },
+ onRegisterError(e) {
+ console.error('failed to register service worker', e)
}
})
})
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]