Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle cases where the postMessage is not a valid json #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kwadwo
Copy link

@kwadwo kwadwo commented Mar 24, 2017

When used on a page with other adUnits & elements that rely on postMessages, the window receives multiple messages which are not necessary valid JSON. This PR adds a check so that it doesn't throw a lot of console errors. when doing JSON.parse on all messages.

iq-dot added a commit to iq-dot/VPAIDHTML5Client that referenced this pull request Jul 28, 2017
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