Closed
Description
When I leave the page containing the iFrame (actually an angular ui-router ui-view), i get the error:
Unhandled exception at line 8, column 4217 in http://localhost:60049/vendor/iframe-resizer/js/iframeResizer.min.js
0x800a138f - JavaScript runtime error: Unable to get property 'postMessage' of undefined or null reference
Is it a bug? Is there any possibility to unbind/detach/unsubscribe before leaving the page?
You could test for iframe.contentWindow in the target method but it would be better if you could gracefully exit a page with an iFrame