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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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)