mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-12 09:13:39 +00:00
clean up active device selection
when clicking first column
This commit is contained in:
@@ -343,7 +343,6 @@ function heartbeat() {
|
||||
d.sendQueue.shift();
|
||||
}
|
||||
});
|
||||
document.getElementById('network-indicator-dot').style.background = '#111';
|
||||
}
|
||||
setInterval(heartbeat, 50);
|
||||
|
||||
|
||||
@@ -162,6 +162,10 @@ function switchDevice(id) {
|
||||
if (id === undefined) {
|
||||
document.getElementById('refresh-device-button').disabled = true;
|
||||
document.getElementById('device-settings-table').style.display = 'none';
|
||||
const $activeDevice = document.querySelector('.active-device');
|
||||
if ($activeDevice) {
|
||||
$activeDevice.classList.remove('active-device');
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user