FIX: the jitsi iframe promise now throw an error if it cannot load in 10 secondes
This commit is contained in:
parent
74ec363449
commit
2a6b2e0cbf
@ -50,8 +50,9 @@ class JitsiFactory {
|
||||
delete options.jwt;
|
||||
}
|
||||
|
||||
return new Promise((resolve) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
options.onload = () => resolve(); //we want for the iframe to be loaded before triggering animations.
|
||||
setTimeout(() => reject('Failed to load the iframe'), 10000); //failsafe in case the iframe is deleted before loading
|
||||
this.jitsiApi = new window.JitsiMeetExternalAPI(domain, options);
|
||||
this.jitsiApi.executeCommand('displayName', playerName);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user