mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
fix: reuse existing variable
This commit is contained in:
parent
26348ccc74
commit
e837e5f780
@ -146,7 +146,7 @@ export default {
|
||||
const baseTime = this.useChapterTrack ? this.currentChapterStart : 0;
|
||||
const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration;
|
||||
const chapterTime = (offsetX / this.trackWidth) * duration;
|
||||
const totalTime = baseTime + ((offsetX / this.trackWidth) * duration);
|
||||
const totalTime = baseTime + chapterTime;
|
||||
|
||||
if (this.$refs.hoverTimestamp) {
|
||||
var width = this.$refs.hoverTimestamp.clientWidth
|
||||
|
Loading…
Reference in New Issue
Block a user