Update app.js

pull/1829/head
frigis1 2022-05-15 04:52:11 -07:00 committed by GitHub
parent 6992c6f2f0
commit cfe8887b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -190,7 +190,7 @@ function timerMenu(idx) {
//reset
if (i == 2) {
clearInt();
a.timer = a.data;
a.timer = a.data.ot;
if (a.on == true) a.on = false;
saveAndReload();
}
@ -252,7 +252,8 @@ function editTimer(idx, a) {
"< Back": () => {
a.t = getCurrentTime() + a.timer;
a.last = 0;
a.data = a.timer;
if (!a.data) a.data = {};
a.data.ot = a.timer;
a.appid = "multitimer";
a.js = "load('multitimer.alarm.js')";
if (idx < 0) alarms.push(a);