hexo-theme-shokax 0.5.0-dev-4774f82 → 0.5.0-dev-e34ffd2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.5.0-dev-4774f82",
3
+ "version": "0.5.0-dev-e34ffd2",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",
@@ -65,7 +65,7 @@ const siteInit = async () => {
65
65
  passive: true
66
66
  })
67
67
 
68
- window.addEventListener('beforeunload', () => {
68
+ window.addEventListener('visibilitychange', () => {
69
69
  pagePosition()
70
70
  })
71
71
  await siteRefresh(1)