Browse Source

ref(external-api) set ifrma source last

Make sure the ifrme is fully configured before setting the source URL
and thus triggering the load.
factor2
Saúl Ibarra Corretgé 2 years ago
parent
commit
a7b25d6d7b
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      modules/API/external/external_api.js

+ 2
- 1
modules/API/external/external_api.js View File

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

Loading…
Cancel
Save