diff --git a/antonclk/antonclk.app.js b/antonclk/antonclk.app.js index d276559..894517d 100644 --- a/antonclk/antonclk.app.js +++ b/antonclk/antonclk.app.js @@ -11,7 +11,7 @@ let watchState = STATE_IDLE; - let stopWatch = require("Storage").readJSON("mystopwatch.json", {start1: null, elapsed1: null, start2: null, elapsed2: null}); + let stopWatch = require("Storage").readJSON("mystopwatch.json", true) || {start1: null, elapsed1: null, start2: null, elapsed2: null}; let saveStopWatch = function() { require("Storage").writeJSON("mystopwatch.json", stopWatch); }