mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
replace var with let
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
This commit is contained in:
parent
4bb9a618be
commit
37cd696a46
@ -14,7 +14,7 @@ class invidious_embed{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
removeEventListner(eventname,func){
|
removeEventListner(eventname,func){
|
||||||
var internal_eventname;
|
let internal_eventname;
|
||||||
if(eventname in invidious_embed.eventname_table){
|
if(eventname in invidious_embed.eventname_table){
|
||||||
internal_eventname = invidious_embed.eventname_table[eventname];
|
internal_eventname = invidious_embed.eventname_table[eventname];
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ class invidious_embed{
|
|||||||
search_params.append('enablejsapi','1');
|
search_params.append('enablejsapi','1');
|
||||||
if(typeof options.playerVars==='object'){
|
if(typeof options.playerVars==='object'){
|
||||||
this.option_playerVars = options.playerVars;
|
this.option_playerVars = options.playerVars;
|
||||||
for(var x in options.playerVars){
|
for (let x in options.playerVars){
|
||||||
if(typeof x==='string'&&typeof options.playerVars[x]==='string'){
|
if(typeof x==='string'&&typeof options.playerVars[x]==='string'){
|
||||||
search_params.append(x,options.playerVars[x]);
|
search_params.append(x,options.playerVars[x]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user