Skip to content

Commit

Permalink
watch.js: setVideoDimensions: Fix video_width being set to height
Browse files Browse the repository at this point in the history
  • Loading branch information
user234683 committed Sep 6, 2021
1 parent 7f1050d commit 4c7ff23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube/static/js/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var video = document.querySelector('video');
function setVideoDimensions(height, width){
var body = document.querySelector('body');
body.style.setProperty('--video_height', String(height));
body.style.setProperty('--video_width', String(height));
body.style.setProperty('--video_width', String(width));
if (height < 240)
body.style.setProperty('--plyr-control-spacing-num', '3');
else
Expand Down

0 comments on commit 4c7ff23

Please sign in to comment.