aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/plyr-start.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-16 17:46:16 -0500
committerJesús <heckyel@hyperbola.info>2021-12-16 17:46:16 -0500
commitdf7e41b61a83320cd2b2ffb9a4a45234162672af (patch)
treed16e3b953fda8b10618478d793dd0096d98b8c35 /youtube/static/js/plyr-start.js
parentdd498e63d96c5b4465e3f7c65f81433aa28f2f10 (diff)
downloadyt-local-df7e41b61a83320cd2b2ffb9a4a45234162672af.tar.lz
yt-local-df7e41b61a83320cd2b2ffb9a4a45234162672af.tar.xz
yt-local-df7e41b61a83320cd2b2ffb9a4a45234162672af.zip
[frontend]: fix global scope, change var to let
Diffstat (limited to 'youtube/static/js/plyr-start.js')
-rw-r--r--youtube/static/js/plyr-start.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube/static/js/plyr-start.js b/youtube/static/js/plyr-start.js
index 763a492..86840e9 100644
--- a/youtube/static/js/plyr-start.js
+++ b/youtube/static/js/plyr-start.js
@@ -16,10 +16,10 @@
let qualityOptions = [];
let qualityDefault;
- for (var src of data['uni_sources']) {
+ for (let src of data['uni_sources']) {
qualityOptions.push(src.quality_string)
}
- for (var src of data['pair_sources']) {
+ for (let src of data['pair_sources']) {
qualityOptions.push(src.quality_string)
}
if (data['using_pair_sources'])
@@ -100,14 +100,14 @@
onChange: function(quality) {
if (quality == 'None') {return;}
if (quality.includes('(integrated)')) {
- for (var i=0; i < data['uni_sources'].length; i++) {
+ for (let i=0; i < data['uni_sources'].length; i++) {
if (data['uni_sources'][i].quality_string == quality) {
changeQuality({'type': 'uni', 'index': i});
return;
}
}
} else {
- for (var i=0; i < data['pair_sources'].length; i++) {
+ for (let i=0; i < data['pair_sources'].length; i++) {
if (data['pair_sources'][i].quality_string == quality) {
changeQuality({'type': 'pair', 'index': i});
return;