diff --git a/client/components/player/PlayerTrackBar.vue b/client/components/player/PlayerTrackBar.vue
index 7b4f7c87..eeebb7af 100644
--- a/client/components/player/PlayerTrackBar.vue
+++ b/client/components/player/PlayerTrackBar.vue
@@ -15,7 +15,7 @@
-
+
@@ -83,9 +83,9 @@ export default {
var offsetX = e.offsetX
var perc = offsetX / this.trackWidth
- const baseTime = this.useChapterTrack ? this.currentChapterStart : 0;
- const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration;
- const time = baseTime + (perc * duration);
+ const baseTime = this.useChapterTrack ? this.currentChapterStart : 0
+ const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration
+ const time = baseTime + perc * duration
if (isNaN(time) || time === null) {
console.error('Invalid time', perc, time)
return
@@ -143,10 +143,10 @@ export default {
mousemoveTrack(e) {
var offsetX = e.offsetX
- const baseTime = this.useChapterTrack ? this.currentChapterStart : 0;
- const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration;
- const progressTime = (offsetX / this.trackWidth) * duration;
- const totalTime = baseTime + progressTime;
+ const baseTime = this.useChapterTrack ? this.currentChapterStart : 0
+ const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration
+ const progressTime = (offsetX / this.trackWidth) * duration
+ const totalTime = baseTime + progressTime
if (this.$refs.hoverTimestamp) {
var width = this.$refs.hoverTimestamp.clientWidth