diff --git a/main/inc/lib/javascript/jquery.frameready.js b/main/inc/lib/javascript/jquery.frameready.js index 70c0681026..3c8ac6c21b 100755 --- a/main/inc/lib/javascript/jquery.frameready.js +++ b/main/inc/lib/javascript/jquery.frameready.js @@ -53,6 +53,11 @@ $.frameReady = function (callback, targetSelector, resources, conditional) { targetDocument = targetWindow.contentDocument; + if (!targetDocument) { + console.log('frameReady: Can\'t access to contentDocument.'); + return; + } + scripts.forEach(function (script) { createScript(script); });