var devices = {};
devices.init = function () {
'use strict';
devices.listen();
gui.overlay(true);
gui.spinner(true, 'Checking for connected devices...');
};
devices.listen = function () {
'use strict';
ipcRenderer.on('ready', devices.ready);
ipcRenderer.on('intval', devices.intvalCb);
};
devices.ready = function (event, arg) {
'use strict';
let opt;
let devs = [];
let notify = 'Connected to '
gui.spinner(false);
gui.overlay(false);
for (let i in arg) {
if (arg[i] !== '/dev/fake') {
devs.push(arg[i]);
if (notify === 'Connected to ') {
notify += arg[i] + ' '
} else {
notify += '& ' + arg[i]
}
}
opt = $('