You are reading a single comment by @stweedo and its replies. Click here to read the full conversation.
  • Something in my loadSettings function in 'interface.html' to read the json file on the bangle is sometimes causing the code execution to get stuck bouncing back and forth between this function in 'puck.js'

    // Did `write` and `eval` manage to create a connection?
        isConnected : function() {
          return connection!==undefined;
        },
    

    and this function in 'comms.js'

    //TODO Switch to an event listener when Puck will support it
        let interval = setInterval(() => {
          if (connected === Puck.isConnected()) return;
    
          connected = Puck.isConnected();
          cb(connected);
        }, 1000);
    

    I think this is why the settings don't always load properly for the preview, it was around every third try opening the interface that it would load them and it would stay working for a while but then it would go back to using my default values.

About

Avatar for stweedo @stweedo started