Reduce variable scope pollution with const/let

This commit is contained in:
Sam Schloegel
2022-01-05 21:20:35 -05:00
parent 35340b86db
commit 9c16c9c220
13 changed files with 130 additions and 130 deletions
+1 -1
View File
@@ -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);
}