Update lib.js

pull/1633/head
KungPhoo 2022-03-28 22:33:52 +02:00 committed by GitHub
parent 14e8a93c81
commit b5010b4109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ exports.pushMessage = function(event) {
var loadMessages = Bangle.CLOCK || event.important;
// first, buzz
var quiet = (require('Storage').readJSON('setting.json',1)||{}).quiet;
var unlockWatch = !!((require('Storage').readJSON("messages.settings.json", true) || {}).unlockWatch;
var unlockWatch = !!((require('Storage').readJSON("messages.settings.json", true) || {}).unlockWatch);
if (!quiet && loadMessages && global.WIDGETS && WIDGETS.messages){
WIDGETS.messages.buzz();
if(unlockWatch){