You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi - readStorageFile was added because StorageFile (as opposed to just the standard Storage) can be a bit of a pain to read. Since StorageFile is really for logging data (eg a file that keeps on growing) you probably shouldn't use it for settings, so writeStorageFile hasn't been needed so far.

    For settings, what you need is likely just to write to Storage, so you could just use the command:

    Puck.write(`\x10require("Storage").write­(${JSON.stringify(filename)},${JSON.stri­ngify(data)})\n`,callback);
    

    We could definitely build that into interface.js but it's not super painful to just do that directly in your interface.html code.

About

Avatar for Gordon @Gordon started