Update settings.js - remove unnecessary code

pull/2789/head
stweedo 2023-05-31 05:35:28 -05:00 committed by GitHub
parent d7f95a4ff5
commit 4ec93084b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}