From c3728785f5653f941c985b78b886ddebb981c866 Mon Sep 17 00:00:00 2001 From: Kedlub Date: Wed, 18 Jan 2023 16:36:26 +0100 Subject: [PATCH] Tabs to spaces --- apps/alarmqm/boot.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/alarmqm/boot.js b/apps/alarmqm/boot.js index 050f297f4..cf35452c0 100644 --- a/apps/alarmqm/boot.js +++ b/apps/alarmqm/boot.js @@ -1,20 +1,20 @@ (function () { - function dismissAlarm(alarm) { + function dismissAlarm(alarm) { // Run only for alarms, not timers - if (!alarm.timer) { - if ("qmsched" in WIDGETS) { - require("qmsched").setMode(0); - } else { - // Code from qmsched.js, so we can work without it - require("Storage").writeJSON( - "setting.json", - Object.assign(require("Storage").readJSON("setting.json", 1) || {}, { - quiet: 0, - }) - ); - } - } - } + if (!alarm.timer) { + if ("qmsched" in WIDGETS) { + require("qmsched").setMode(0); + } else { + // Code from qmsched.js, so we can work without it + require("Storage").writeJSON( + "setting.json", + Object.assign(require("Storage").readJSON("setting.json", 1) || {}, { + quiet: 0, + }) + ); + } + } + } - Bangle.on("alarmDismiss", dismissAlarm); -})(); \ No newline at end of file + Bangle.on("alarmDismiss", dismissAlarm); + })(); \ No newline at end of file