Closed patricecolet closed 9 months ago
I can not reproduce the issue
On a sidenote, you don't need to stringify the object and then parse it on the other end, you can simply pass a plain object and consume it as is in the script's onValue (also using value
directly would be more efficient than calling get(this)
) .
Curiously, javascript doesn't parse when the code come from custom module without JSON.parse()
Then you could parse it if needed:
var data = typeof value === "string" ? JSON.parse(value) : value
'node open-stage-control --port 5000 --custom-module getConfig.js --load open-stage-control/sessions/modulePre.json')
a JSON object is sent to a global script from some widget "onValue" script:
here is the global script:
The message is not parsed without JSON.parse(), console.log() shows nothing
With JSON.parse() it works but when I reload the page the console complains even if it works, here is the console output: