1
0
Fork 0

only save the original hour on the first snooze

master
Sabin Iacob 2020-06-01 20:26:41 +03:00
parent b1f3e5e125
commit 07bcd7528b
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function showAlarm(alarm) {
}).then(function(sleep) {
buzzCount = 0;
if (sleep) {
alarm.ohr = alarm.hr;
if(!alarm.ohr) alarm.ohr = alarm.hr;
alarm.hr += 10/60; // 10 minutes
} else {
alarm.last = (new Date()).getDate();