Skip to content

Commit

Permalink
fix progress local slow update
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Feb 4, 2023
1 parent 09341ec commit 4cb1acd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/BrtPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1418,14 +1418,16 @@ const saveCurTimeToPer = throttle(
name: nameCurrentChap,
})
.catch((err) => console.warn("save viewing progress failed: ", err))
.finally(() => (processingSaveCurTimeIn = null))
emit("cur-update", {
cur,
dur,
id: currentChap,
})
console.log("save viewing progress")
.finally(() => {
emit("cur-update", {
cur,
dur,
id: currentChap,
})
console.log("save viewing progress")
processingSaveCurTimeIn = null
})
},
DELAY_SAVE_VIEWING_PROGRESS
)
Expand Down

0 comments on commit 4cb1acd

Please sign in to comment.