Skip to content

Commit e025391

Browse files
committed
Update alarm.js
1 parent 3d7d60e commit e025391

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/alarm/alarm.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ function showAlarm(alarm) {
2222
var buzzCount = 10;
2323
if (alarm.msg)
2424
msg += "\n"+alarm.msg;
25+
const ok = locale.translate("Ok");
2526
E.showPrompt(msg,{
2627
title:"ALARM!"/*LANG*/,
27-
buttons : {"Sleep"/*LANG*/:true,locale.translate("Ok"):false} // default is sleep so it'll come back in 10 mins
28+
buttons : {"Sleep"/*LANG*/:true,ok:false} // default is sleep so it'll come back in 10 mins
2829
}).then(function(sleep) {
2930
buzzCount = 0;
3031
if (sleep) {

0 commit comments

Comments
 (0)