ref(external-api) set ifrma source last

Make sure the ifrme is fully configured before setting the source URL
and thus triggering the load.
This commit is contained in:
Saúl Ibarra Corretgé 2023-01-16 11:58:06 +01:00 committed by Saúl Ibarra Corretgé
parent 43b91b16da
commit a7b25d6d7b
1 changed files with 2 additions and 1 deletions

View File

@ -388,7 +388,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
this._frame = document.createElement('iframe');
this._frame.allow = 'camera; microphone; display-capture; autoplay; clipboard-write';
this._frame.src = this._url;
this._frame.name = frameName;
this._frame.id = frameName;
this._setSize(height, width);
@ -403,6 +402,8 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
}
this._frame = this._parentNode.appendChild(this._frame);
this._frame.src = this._url;
}
/**