only save the original hour on the first snooze
parent
b1f3e5e125
commit
07bcd7528b
|
|
@ -24,7 +24,7 @@ function showAlarm(alarm) {
|
||||||
}).then(function(sleep) {
|
}).then(function(sleep) {
|
||||||
buzzCount = 0;
|
buzzCount = 0;
|
||||||
if (sleep) {
|
if (sleep) {
|
||||||
alarm.ohr = alarm.hr;
|
if(!alarm.ohr) alarm.ohr = alarm.hr;
|
||||||
alarm.hr += 10/60; // 10 minutes
|
alarm.hr += 10/60; // 10 minutes
|
||||||
} else {
|
} else {
|
||||||
alarm.last = (new Date()).getDate();
|
alarm.last = (new Date()).getDate();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue