aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/plyr-start.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-09-01 12:25:46 -0500
committerJesús <heckyel@hyperbola.info>2021-09-01 12:25:46 -0500
commit98d9b357658d19caad64fe9df4dcb42146e214bc (patch)
treeb2cbb55212596193fe6d1a1ecfd7ae04eb961775 /youtube/static/js/plyr-start.js
parent676536a29429b46faf904da8bfd9bf50955dd370 (diff)
downloadyt-local-98d9b357658d19caad64fe9df4dcb42146e214bc.tar.lz
yt-local-98d9b357658d19caad64fe9df4dcb42146e214bc.tar.xz
yt-local-98d9b357658d19caad64fe9df4dcb42146e214bc.zip
plyr: minor fix
Diffstat (limited to 'youtube/static/js/plyr-start.js')
-rw-r--r--youtube/static/js/plyr-start.js3
1 files changed, 1 insertions, 2 deletions
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) {