forked from FOSS/BangleApps
Update lib.js
parent
b5010b4109
commit
a011858cab
|
@ -58,10 +58,10 @@ 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('setting.json',1)||{}).unlockWatch;
|
||||
if (!quiet && loadMessages && global.WIDGETS && WIDGETS.messages){
|
||||
WIDGETS.messages.buzz();
|
||||
if(unlockWatch){
|
||||
if(!!unlockWatch){
|
||||
Bangle.setLocked(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue