diff --git a/static/js/domoboard.js b/static/js/domoboard.js index a32fb1c..b47a3c1 100644 --- a/static/js/domoboard.js +++ b/static/js/domoboard.js @@ -24,9 +24,7 @@ function changeSwitch(checkboxElem, idx) { // switchSelector function switchSelector(idx, lvl, bid) { - var old_bid = bid.replace(new RegExp(lvl + '$'), ''); - //var old_index = bid.replace(lvl, ''); url = '/api?type=devices&rid=' + idx; requestAPI(flask_server + url, function(d) { r = JSON.parse(d);