mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Use uhttpd lua handler
This commit is contained in:
parent
a45d1ad8ed
commit
b6dca873e7
@ -19,11 +19,11 @@ $(function() {
|
|||||||
if (getURLParameter("c") != "null") communicateWithWifibox = (getURLParameter("c") == "1");
|
if (getURLParameter("c") != "null") communicateWithWifibox = (getURLParameter("c") == "1");
|
||||||
if (getURLParameter("r") != "null") wifiboxIsRemote = (getURLParameter("r") == "1");
|
if (getURLParameter("r") != "null") wifiboxIsRemote = (getURLParameter("r") == "1");
|
||||||
if (getURLParameter("u") != "null") autoUpdate = (getURLParameter("u") == "1");
|
if (getURLParameter("u") != "null") autoUpdate = (getURLParameter("u") == "1");
|
||||||
|
|
||||||
if (wifiboxIsRemote) {
|
if (wifiboxIsRemote) {
|
||||||
wifiboxURL = "http://192.168.5.1/cgi-bin/d3dapi";
|
wifiboxURL = "http://192.168.5.1/d3dapi";
|
||||||
} else {
|
} else {
|
||||||
wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi";
|
wifiboxURL = "http://" + window.location.host + "/d3dapi";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!communicateWithWifibox) {
|
if (!communicateWithWifibox) {
|
||||||
|
Loading…
Reference in New Issue
Block a user