From 4bb9a618be8a8cce01d9172d23164491aca29ae3 Mon Sep 17 00:00:00 2001 From: bonjinnorenka <32708102+bonjinnorenka@users.noreply.github.com> Date: Tue, 29 Aug 2023 07:56:52 +0900 Subject: [PATCH] error message more easy to understand Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com> --- assets/js/invidious_iframe_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/invidious_iframe_api.js b/assets/js/invidious_iframe_api.js index 499f0837..d4f07a8d 100644 --- a/assets/js/invidious_iframe_api.js +++ b/assets/js/invidious_iframe_api.js @@ -30,7 +30,7 @@ class invidious_embed{ this.eventobject = {ready:[],ended:[],error:[],ratechange:[],volumechange:[],waiting:[],timeupdate:[],loadedmetadata:[],play:[],seeking:[],seeked:[],playerresize:[],pause:[],statechange:[]}; var replace_elemnt; if(element===undefined||element===null){ - throw 'please set element id or HTMLElement'; + throw 'Please, pass element id or HTMLElement as first argument'; } else if(typeof element==='string'){ replace_elemnt = document.getElementById(element);