travist / seamless.js

A Javascript library for working with seamless iframes.
http://www.travistidwell.com/seamless.js
MIT License
217 stars 44 forks source link

Multiple console warnings when running Redux Dev Tools / Webpack Dev Server #16

Open mdurling opened 7 years ago

mdurling commented 7 years ago

seamless.parent.js logs many JSON parsing warnings when running Redux Dev Tools and/or Webpack Dev Server (See attached). These warnings are not service affecting but they do interfere with our ability to monitor and debug our application. If I remove the Redux Dev Tools middleware and use a real http server, the errors are not present.

screen shot 2017-02-04 at 10 21 05 am screen shot 2017-02-04 at 10 16 34 am

I opened this issue, but I realize now that the code which generates the console warnings is actually part of postmessage which you are including as a submodule. postmessage is attempting to parse every message even those sent using window.postMessage directly. postmessage should be tagging and only parsing messages that it was used to send.