diff --git a/skin/frontend/base/default/js/TIG/MyParcel2014/checkout.js b/skin/frontend/base/default/js/TIG/MyParcel2014/checkout.js index 485ed4cc..835a584f 100755 --- a/skin/frontend/base/default/js/TIG/MyParcel2014/checkout.js +++ b/skin/frontend/base/default/js/TIG/MyParcel2014/checkout.js @@ -114,9 +114,9 @@ var iframeDataLoaded, iframeLoaded, myParcelToggleOptions; */ resizeIframeHeight = function () { var iframe = mypajQuery('#myparcel-iframe'); - try { + if (iframe && iframe.contents().length > 0) { iframe.height(10).height(iframe.contents().height()); - } + } }; checkMyParcelMethod = function() {