Notify on mock device connectio

This commit is contained in:
mmcwilliams 2019-05-28 17:41:39 -04:00
parent 9a0ebcca06
commit da6fef6080
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ devices.listen = function () {
};
devices.ready = function (event, arg) {
'use strict';
console.dir(arg)
//console.dir(arg)
let opt;
let devs = [];
let notify = 'Connected to ';
@ -70,6 +70,8 @@ devices.ready = function (event, arg) {
}
if (notify !== 'Connected to ') {
gui.notify('DEVICES', notify);
} else {
gui.notify('DEVICES', 'Connected to mock devices')
}
if (devs.length > 0) {
$('#devices').empty();