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);