aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/static')
-rw-r--r--youtube/static/js/watch.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube/static/js/watch.js b/youtube/static/js/watch.js
index 38aab3f..f7e6285 100644
--- a/youtube/static/js/watch.js
+++ b/youtube/static/js/watch.js
@@ -1,4 +1,4 @@
-var video = document.getElementById('js-video-player');
+const video = document.getElementById('js-video-player');
function changeQuality(selection) {
var currentVideoTime = video.currentTime;
@@ -40,8 +40,7 @@ document.getElementById('quality-select').addEventListener(
);
// Set up video start time from &t parameter
-if (data.time_start != 0 && video)
- video.currentTime = data.time_start;
+if (data.time_start != 0 && video) {video.currentTime = data.time_start};
// External video speed control
var speedInput = document.getElementById('speed-control');