diff --git a/renderer.js b/renderer.js index bd9babd..c2795eb 100644 --- a/renderer.js +++ b/renderer.js @@ -706,7 +706,6 @@ window.onload = function () { refreshBasetunes(); refreshSerialPorts(); checkForUpdates(); - }; $(function(){ @@ -767,4 +766,8 @@ $(function(){ } }); + //Detect devices hotplug + usb.usb.on('attach', refreshSerialPorts); + usb.usb.on('detach', refreshSerialPorts); + }); \ No newline at end of file