Skip to content

Commit

Permalink
set the url after the iframe is appended to the dom
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrudge committed Nov 16, 2017
1 parent a784917 commit 2d7243d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/iframe-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ IframeHandler.prototype.init = function() {

this.iframe = _window.document.createElement('iframe');
this.iframe.style.display = 'none';
this.iframe.src = this.url;

// Workaround to avoid using bind that does not work in IE8
this.proxyEventListener = function(e) {
Expand All @@ -50,6 +49,7 @@ IframeHandler.prototype.init = function() {
this.eventSourceObject.addEventListener(this.eventListenerType, this.proxyEventListener, false);

_window.document.body.appendChild(this.iframe);
this.iframe.src = this.url;

this.timeoutHandle = setTimeout(function() {
_this.timeoutHandler();
Expand Down

0 comments on commit 2d7243d

Please sign in to comment.