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 4817f152 chore: add log for new content available
4817f152 is described below
commit 4817f152e00c0d088c04e116442ec7b9556cee1a
Author: plainheart <[email protected]>
AuthorDate: Tue Apr 19 21:32:12 2022 +0800
chore: add log for new content available
---
.scripts/pwa/main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.scripts/pwa/main.js b/.scripts/pwa/main.js
index 9ded0adc..5f7966e2 100644
--- a/.scripts/pwa/main.js
+++ b/.scripts/pwa/main.js
@@ -28,7 +28,6 @@ window.addEventListener('load', () => {
}
const showToast = () => {
- hideToast()
pwaToast.classList.add('show')
}
@@ -41,6 +40,7 @@ window.addEventListener('load', () => {
console.log('Page is ready to work offline')
},
onNeedRefresh() {
+ console.log('New content available')
showToast()
}
})
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]