From 98d9b357658d19caad64fe9df4dcb42146e214bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 1 Sep 2021 12:25:46 -0500 Subject: plyr: minor fix --- youtube/static/js/plyr-start.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'youtube/static') diff --git a/youtube/static/js/plyr-start.js b/youtube/static/js/plyr-start.js index dae001a..79a0301 100644 --- a/youtube/static/js/plyr-start.js +++ b/youtube/static/js/plyr-start.js @@ -96,8 +96,7 @@ const player = new Plyr(document.getElementById('js-video-player'), { options: qualityOptions, forced: true, onChange: function(quality) { - if (quality == 'None') - return; + if (quality == 'None') {return;} if (quality.includes('(integrated)')) { for (var i=0; i < data['uni_sources'].length; i++) { if (data['uni_sources'][i].quality_string == quality) { -- cgit v1.2.3