-
Notifications
You must be signed in to change notification settings - Fork 820
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
LeftAndMain.js assumes iframe postmessages are strings #6562
Comments
want to open a PR? |
roed
added a commit
to roed/silverstripe-framework
that referenced
this issue
Jan 24, 2017
See issue: silverstripe#6562 This is a fix for that, which was already implemented in the code for version 4.0.
Was already fixed in 4.0, but still made a PR. |
thanks |
Came across a Chrome plugin for Grammarly using this mechanism. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In LeftAndMain.js, there is a method that handles messages triggered in iframes (postMessage):
I tried to integrate a third party app that uses such messages, but the event.data is an object, not a string. This causes an error, because it tries to parse an object. Perhaps it is better to check if event.data is a string, and, if so, parse it:
The text was updated successfully, but these errors were encountered: