mirror of
https://github.com/iv-org/invidious.git
synced 2025-01-10 11:30:34 +05:30
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:[]};
|
this.eventobject = {ready:[],ended:[],error:[],ratechange:[],volumechange:[],waiting:[],timeupdate:[],loadedmetadata:[],play:[],seeking:[],seeked:[],playerresize:[],pause:[],statechange:[]};
|
||||||
var replace_elemnt;
|
var replace_elemnt;
|
||||||
if(element===undefined||element===null){
|
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'){
|
else if(typeof element==='string'){
|
||||||
replace_elemnt = document.getElementById(element);
|
replace_elemnt = document.getElementById(element);
|
||||||
|
Loading…
Reference in New Issue
Block a user