Thanks to visit codestin.com
Credit goes to github.com

Skip to content

popup window message event wrapped inside jquery event #7

Open
@ricardo37

Description

@ricardo37

I couldn't get my installation to work at first. Dug around a bit and realized it was because in my case the message event sent by window.opener.postMessage was received back at my main app as a jquery event, with the actual message stored at event.originalEvent. I'm not sure why this would be since I'm following the example code pretty closely. Maybe because my client is built with ui-bootstrap? In any case the fix is an easy one at my end: in the function bound to the calling window's message event, just alter event to event.originalEvent. But you may want to adjust at your end to help out other users encountering this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions