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

Error: cannot read property type from null #20

Open
bobliwang opened this issue Sep 5, 2018 · 1 comment
Open

Error: cannot read property type from null #20

bobliwang opened this issue Sep 5, 2018 · 1 comment

Comments

@bobliwang
Copy link

In version 1.3.0, seamless.child.js, it throws error when it receives a post message with data property null. JSON.parse(e.data) returns null value and assigns to msg, afterwards if(!msg.type) blows out with null object error. Line 215

@yabdab
Copy link

yabdab commented Sep 26, 2018

I fixed it by adding this just after __dispatch: function(e) {_

if(!e.data) return;

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

No branches or pull requests

2 participants