We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0336e commit f4be9f4Copy full SHA for f4be9f4
apps/bttfclock/app.js
@@ -199,7 +199,7 @@ function draw(){
199
if (alarmStatus){
200
g.drawImage(alarmIcon, 78, statusDataY-1);
201
}
202
- if (require("Storage").read("messages.json")!==undefined){
+ if ((require('Storage').readJSON('messages.json',1)||[]).some(messag=>messag.new==true)){
203
g.drawImage(notificationIcon, 94, statusDataY-1);
204
205
0 commit comments