Auto refresh ports when USB hotplugged

This commit is contained in:
Josh Stewart 2024-06-12 13:17:42 +10:00
parent a72b57e710
commit 7c37e2790b
1 changed files with 4 additions and 1 deletions

View File

@ -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);
});