aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
Diffstat (limited to 'youtube')
-rw-r--r--youtube/templates/watch.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index 8a2949e..a59b54a 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -273,9 +273,9 @@
}
});
+ const vid = document.getElementById('js-video-player');
if(!playability_error){
// play the video if autoplay is on
- let vid = document.querySelector('video');
if(autoplayEnabled){
vid.play();
}