优化
This commit is contained in:
1 parent
028f840668
commit
a7c62cbc05
2 files changed
+2
-2
No files matched your search
@@ -324,7 +324,7 @@ const saveReadingBookProgressToBrowser = (index, pos) => {
|
||||
|
||||
// 进度同步
|
||||
// 返回同步 同步请求会在获取书架前完成
|
||||
// 刷新 关闭页面 切换tab 返回桌面 等操作 https://developer.mozilla.org/zh-CN/docs/Web/API/Document/visibilitychange_event
|
||||
// 关闭页面 切换tab 返回桌面 等操作 https://developer.mozilla.org/zh-CN/docs/Web/API/Document/visibilitychange_event
|
||||
const onVisibilityChange = () => {
|
||||
if (!bookProgress.value) return;
|
||||
if (document.visibilityState == 'hidden') {
|
||||
|
||||
Reference in new issue
Block a user