From b6dca873e701b80ab7eaebe20637c5264eecfda7 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Wed, 2 Oct 2013 14:45:54 +0200 Subject: [PATCH] Use uhttpd lua handler --- js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index 621a5b2..a5a247b 100644 --- a/js/main.js +++ b/js/main.js @@ -19,11 +19,11 @@ $(function() { if (getURLParameter("c") != "null") communicateWithWifibox = (getURLParameter("c") == "1"); if (getURLParameter("r") != "null") wifiboxIsRemote = (getURLParameter("r") == "1"); if (getURLParameter("u") != "null") autoUpdate = (getURLParameter("u") == "1"); - + if (wifiboxIsRemote) { - wifiboxURL = "http://192.168.5.1/cgi-bin/d3dapi"; + wifiboxURL = "http://192.168.5.1/d3dapi"; } else { - wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi"; + wifiboxURL = "http://" + window.location.host + "/d3dapi"; } if (!communicateWithWifibox) {