mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
error message more easy to understand
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
This commit is contained in:
parent
024246d1b3
commit
4bb9a618be
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user