diff --git a/code/html/custom.js b/code/html/custom.js index 906fc2e0..036fe768 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -427,7 +427,7 @@ function doToggle(element, value) { function doScan() { $("#scanResult").html(""); $("div.scan.loading").show(); - websock.send(JSON.stringify({'action': 'scan', 'data': {}})); + websock.send(JSON.stringify({"action": "scan", "data": {}})); return false; } @@ -641,8 +641,8 @@ function initMagnitudes(data) { } function getManifest(sensor_id) { - for (i in manifest) { - if (manifest[i].sensor_id ===sensor_id) { + for (var i in manifest) { + if (manifest[i].sensor_id === sensor_id) { return manifest[i]; } }