Update app.js

master
frigis1 2022-04-14 02:54:21 -07:00 committed by GitHub
parent 598dca7a90
commit b64a641bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ function editAlarm(alarmIndex, alarm) {
if (alarm) Object.assign(a,alarm); if (alarm) Object.assign(a,alarm);
var t = decodeTime(a.t); var t = decodeTime(a.t);
var alarmTitle = (a.msg == undefined) ? 'Alarm' : (a.msg.length > 12) ? a.msg.replace(/\n/g, " ").substring(0, 12)+"..." : msg; var alarmTitle = (a.msg == undefined) ? 'Alarm' : (a.msg.length > 12) ? a.msg.replace(/\n/g, " ").substring(0, 12)+"..." : msg.replace(/\n/g, " ").substring(0, 12)+"...";
const menu = { const menu = {
'': { 'title': alarmTitle }, '': { 'title': alarmTitle },
@ -263,7 +263,7 @@ function editTimer(alarmIndex, alarm) {
if (alarm) Object.assign(a,alarm); if (alarm) Object.assign(a,alarm);
var t = decodeTime(a.timer); var t = decodeTime(a.timer);
var timerTitle = (a.msg == undefined) ? 'Timer' : (a.msg.length > 12) ? a.msg.replace(/\n/g, " ").substring(0, 12)+"..." : msg; var timerTitle = (a.msg == undefined) ? 'Timer' : (a.msg.length > 12) ? a.msg.replace(/\n/g, " ").substring(0, 12)+"..." : msg.replace(/\n/g, " ").substring(0, 12)+"...";
const menu = { const menu = {
'': { 'title': timerTitle }, '': { 'title': timerTitle },