Files
AI-on-the-edge-device/sd-card/html/gethost.js
2020-09-04 18:59:00 +02:00

16 lines
408 B
JavaScript

function getbasepath(){
var host = window.location.hostname;
if (host == "127.0.0.1")
{
host = "http://192.168.178.26"; // jomjol interner test
// host = "http://192.168.178.22"; // jomjol interner Real
// host = "."; // jomjol interner localhost
}
else
{
host = "http://" + host;
}
return host;
}