From 4ec93084b2ecac63c23c1c648cb70ab6caf9f34a Mon Sep 17 00:00:00 2001 From: stweedo <108593831+stweedo@users.noreply.github.com> Date: Wed, 31 May 2023 05:35:28 -0500 Subject: [PATCH] Update settings.js - remove unnecessary code --- apps/shadowclk/settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/shadowclk/settings.js b/apps/shadowclk/settings.js index af94c8494..3fb774892 100644 --- a/apps/shadowclk/settings.js +++ b/apps/shadowclk/settings.js @@ -47,7 +47,7 @@ function switchTheme(mode) { if (mode === g.theme.dark) return; sysSettings.theme = createThemeColors(mode); - if (sysSettings.clock && sysSettings.clock === "shadowclk.app.js") { + if (sysSettings.clock === "shadowclk.app.js") { require('Storage').writeJSON("setting.json", sysSettings); } updateTheme(mode); @@ -95,7 +95,7 @@ } function writeTimeModeSetting() { - if (sysSettings.clock && sysSettings.clock === "shadowclk.app.js") { + if (sysSettings.clock === "shadowclk.app.js") { sysSettings['12hour'] = appSettings.enable12Hour; require('Storage').writeJSON("setting.json", sysSettings); }