From 37cd696a4642ecb8666d3c9b2e59bd954a90e5c4 Mon Sep 17 00:00:00 2001 From: bonjinnorenka <32708102+bonjinnorenka@users.noreply.github.com> Date: Wed, 30 Aug 2023 00:22:55 +0900 Subject: [PATCH] replace var with let Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com> --- assets/js/invidious_iframe_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/invidious_iframe_api.js b/assets/js/invidious_iframe_api.js index d4f07a8d..1bd7637d 100644 --- a/assets/js/invidious_iframe_api.js +++ b/assets/js/invidious_iframe_api.js @@ -14,7 +14,7 @@ class invidious_embed{ } } removeEventListner(eventname,func){ - var internal_eventname; + let internal_eventname; if(eventname in invidious_embed.eventname_table){ internal_eventname = invidious_embed.eventname_table[eventname]; } @@ -63,7 +63,7 @@ class invidious_embed{ search_params.append('enablejsapi','1'); if(typeof options.playerVars==='object'){ 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'){ search_params.append(x,options.playerVars[x]); }