You are reading a single comment by @stweedo and its replies. Click here to read the full conversation.
  • Yep, I meant to come back here and clarify that as well.

    Exactly as Gordon suggested, I had to add square brackets [...] around the require("Storage").readJSON("shadowclk.j­son", true) in the Puck.eval() call to wrap the resulting data in an array. Then extract the actual data from the array using let data = dataArray ? dataArray[0] : null;. like this:"

    Puck.eval('[require("Storage").readJSON(­"shadowclk.json", true)]', (dataArray) => {
        let data = dataArray ? dataArray[0] : null;
    
About

Avatar for stweedo @stweedo started