Debug
parent
4810eefe08
commit
2bd1da264f
|
|
@ -101,10 +101,12 @@ layout.render();
|
||||||
function configureNotification(stat) {
|
function configureNotification(stat) {
|
||||||
stat.on('notify', (e)=>{
|
stat.on('notify', (e)=>{
|
||||||
settings.notify[e.id].notifications.reduce(function (promise, buzzPattern) {
|
settings.notify[e.id].notifications.reduce(function (promise, buzzPattern) {
|
||||||
|
console.log(buzzPattern);
|
||||||
return promise.then(function () {
|
return promise.then(function () {
|
||||||
return Bangle.buzz(buzzPattern[0], buzzPattern[1]);
|
return Bangle.buzz(buzzPattern[0], buzzPattern[1]);
|
||||||
});
|
});
|
||||||
}, Promise.resolve());
|
}, Promise.resolve())
|
||||||
|
.then(console.log);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue