Notify on mock device connectio
This commit is contained in:
parent
9a0ebcca06
commit
da6fef6080
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue