mirror of https://github.com/espruino/BangleApps
hardalarm: respect Quiet Mode
parent
f459839c12
commit
04f02f4274
|
@ -2593,7 +2593,7 @@
|
|||
"name": "Hard Alarm",
|
||||
"shortName":"HardAlarm",
|
||||
"icon": "app.png",
|
||||
"version":"0.01",
|
||||
"version":"0.02",
|
||||
"description": "Make sure you wake up! Count to the right number to turn off the alarm",
|
||||
"tags": "tool,alarm,widget",
|
||||
"storage": [
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
0.01: Add a number to match to turn off alarm
|
||||
0.02: Respect Quiet Mode
|
||||
|
|
|
@ -62,6 +62,7 @@ function showPrompt(msg, buzzCount, alarm) {
|
|||
}
|
||||
|
||||
function showAlarm(alarm) {
|
||||
if ((require('Storage').readJSON('setting.json',1)||{}).quiet>1) return; // total silence
|
||||
var msg = formatTime(alarm.hr);
|
||||
var buzzCount = 20;
|
||||
if (alarm.msg)
|
||||
|
|
Loading…
Reference in New Issue