stlap: no exceptions when STATE_PATH doesn't exist

master
Rob Pilling 2023-05-06 11:23:16 +01:00
parent fc91e7db89
commit 8702b35045
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ const BUTTON_ICONS = {
reset: heatshrink.decompress(atob("jEYwMA/4BB/+BAQPDAQPnAQIAKv///0///8j///EP//wAQQICBwQUCEhgyCHAQ+CIgI="))
};
let state = storage.readJSON(STATE_PATH);
let state = storage.readJSON(STATE_PATH, 1);
const STATE_DEFAULT = {
wasRunning: false, //If the stopwatch was ever running since being reset
sessionStart: 0, //When the stopwatch was first started