Skip to content

Commit f4be9f4

Browse files
committed
Better message notification
1 parent da0336e commit f4be9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/bttfclock/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function draw(){
199199
if (alarmStatus){
200200
g.drawImage(alarmIcon, 78, statusDataY-1);
201201
}
202-
if (require("Storage").read("messages.json")!==undefined){
202+
if ((require('Storage').readJSON('messages.json',1)||[]).some(messag=>messag.new==true)){
203203
g.drawImage(notificationIcon, 94, statusDataY-1);
204204
}
205205

0 commit comments

Comments
 (0)