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
 
388
 
389
         this._frame = document.createElement('iframe');
389
         this._frame = document.createElement('iframe');
390
         this._frame.allow = 'camera; microphone; display-capture; autoplay; clipboard-write';
390
         this._frame.allow = 'camera; microphone; display-capture; autoplay; clipboard-write';
391
-        this._frame.src = this._url;
392
         this._frame.name = frameName;
391
         this._frame.name = frameName;
393
         this._frame.id = frameName;
392
         this._frame.id = frameName;
394
         this._setSize(height, width);
393
         this._setSize(height, width);
403
         }
402
         }
404
 
403
 
405
         this._frame = this._parentNode.appendChild(this._frame);
404
         this._frame = this._parentNode.appendChild(this._frame);
405
+
406
+        this._frame.src = this._url;
406
     }
407
     }
407
 
408
 
408
     /**
409
     /**

Loading…
Cancel
Save