Update app.js

pull/1683/head
frigis1 2022-04-09 12:36:32 -07:00 committed by GitHub
parent 008c19d177
commit 84eb9ed4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -229,6 +229,7 @@ function editAlarm(alarmIndex, alarm) {
menu["Save"] = function() {
a.t = encodeTime(t);
a.last = (a.t < getCurrentTime()) ? (new Date()).getDate() : 0;
a.last = 0;
if (newAlarm) alarms.push(a);
else alarms[alarmIndex] = a;
saveAndReload();