From 0b8fa574d24bd7d78026199d7c5935bfd803258c Mon Sep 17 00:00:00 2001 From: Richard Hopkins Date: Mon, 11 May 2020 12:05:18 +0100 Subject: [PATCH] Bug fixes --- apps/gallifr/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/gallifr/app.js b/apps/gallifr/app.js index 57ca86279..42227f0a8 100644 --- a/apps/gallifr/app.js +++ b/apps/gallifr/app.js @@ -10,8 +10,7 @@ const cirRad = 2*Math.PI; const proportion = 0.3; // relative size of hour hand const thickness = 4; // thickness of decorative lines // retrieve settings from menu -// const settings = require("Storage").readJSON("app.json", 1); -require('Storage').read('app.json',settings); +let settings = require('Storage').readJSON('app.json',1)||{}; const decoration = settings.decoration; const widgets = settings.widgets; if (widgets) {