Skip to content

Javascript error when iFrame removed by Angular. #160

Closed
@nelisbijl

Description

@nelisbijl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions