Skip to content

Fix - Handle when outside message event.data is not a string#15

Open
WayneEllery wants to merge 1 commit intoInteractiveAdvertisingBureau:masterfrom
WayneEllery:fix/handle-ouside-message-data-when-not-string
Open

Fix - Handle when outside message event.data is not a string#15
WayneEllery wants to merge 1 commit intoInteractiveAdvertisingBureau:masterfrom
WayneEllery:fix/handle-ouside-message-data-when-not-string

Conversation

@WayneEllery
Copy link
Copy Markdown

Fixed issue when outside message data was not a string.

Steps to reproduce:

  1. Load page with safeframe
  2. Open web developer tools console
  3. Type window.postMessage({}, "*") and enter

Result:

Uncaught TypeError: data.indexOf is not a function
    at _handle_msg_from_outside (host.js:1729)

Expected result:

No error and message should be ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant