Update epub media progress update

This commit is contained in:
advplyr 2023-03-26 13:50:44 -05:00
parent 916fd039ca
commit f2baf3fafd

View File

@ -176,6 +176,10 @@ export default {
}, },
/** @param {string} location - CFI of the new location */ /** @param {string} location - CFI of the new location */
relocated(location) { relocated(location) {
if (this.userMediaProgress?.ebookLocation === location.start.cfi) {
return
}
if (location.end.percentage) { if (location.end.percentage) {
this.updateProgress({ this.updateProgress({
ebookLocation: location.start.cfi, ebookLocation: location.start.cfi,