mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-20 04:38:59 +00:00
bugfix #46 dupe device loading
This commit is contained in:
+9
-6
@@ -95,12 +95,15 @@ window.init = function init() {
|
||||
};
|
||||
|
||||
document.getElementById('add-device-button').onchange = function addDeviceClick(e) {
|
||||
DEVICE.registerDevice({
|
||||
type: e.target.value,
|
||||
defaultName: 'New Device',
|
||||
port: undefined,
|
||||
addresses: [],
|
||||
});
|
||||
DEVICE.registerDevice(
|
||||
{
|
||||
type: e.target.value,
|
||||
defaultName: 'New Device',
|
||||
port: undefined,
|
||||
addresses: [],
|
||||
},
|
||||
'fromAddButton'
|
||||
);
|
||||
e.target.selectedIndex = 0;
|
||||
|
||||
SAVESLOTS.saveAll();
|
||||
|
||||
Reference in New Issue
Block a user