diff options
-rw-r--r-- | youtube/templates/watch.html | 2 |
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(); } |