You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just had a chance to try this again. I removed my string-escaping from the rendering code, and sent back some output which is actually a little bit of JSON.
The error happens on the controller side, in the onOutputChanged event handler.
Just having an onOutputChanged(*) handler is enough to cause a script error to be reported in the corresponding controller panel - although when opening the script, no error is reported.
Adding back the string-escaping on the rendering side, before calling setOutput, fixes the error.
This is what I'm currently seeing, anyway.
If I send a string with a quote in, I get an error. If I escape the quote (JSON-style), it works ok.
My guess is that under the hood the string is being turned into JSON without getting escaped.
See also #47 which would fix it.
The text was updated successfully, but these errors were encountered: