Skip to content

Commit

Permalink
#477 Fix bug when iFrame closed before first resize
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Mar 30, 2017
1 parent 97df6e1 commit 5bbd85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iframeResizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@

function warnOnNoResponse() {
function warning() {
if (!settings[id].loaded && !errorShown) {
if (settings[id] && !settings[id].loaded && !errorShown) {
errorShown = true;
warn(id, 'IFrame has not responded within '+ settings[id].warningTimeout/1000 +' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.');
}
Expand Down

0 comments on commit 5bbd85a

Please sign in to comment.