mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-07-26 09:18:39 +00:00
Reduce variable scope pollution with const/let
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ window.init = function () {
|
||||
|
||||
document.getElementById('device-list').onclick = function (e) {
|
||||
e.stopPropagation();
|
||||
var deviceID = e.srcElement.id;
|
||||
const deviceID = e.srcElement.id;
|
||||
if (e.srcElement.id != 'device-list') {
|
||||
VIEW.switchDevice(deviceID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user