mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 04:56:53 +03:00
Rolling 2021-11-23
This commit is contained in:
@@ -3,9 +3,12 @@ function gethost_Version(){
|
||||
return "1.0.0 - 20200910";
|
||||
}
|
||||
|
||||
|
||||
function getbasepath(){
|
||||
var host = window.location.hostname;
|
||||
if ((host == "127.0.0.1") || (host == "localhost") || (host == ""))
|
||||
if (((host == "127.0.0.1") || (host == "localhost") || (host == ""))
|
||||
&& ((window.location.port == "80") || (window.location.port == "")))
|
||||
|
||||
{
|
||||
// host = "http://192.168.2.219"; // jomjol interner test
|
||||
// host = "http://192.168.178.46"; // jomjol interner test
|
||||
@@ -18,6 +21,10 @@ function getbasepath(){
|
||||
{
|
||||
host = "http://" + host;
|
||||
}
|
||||
|
||||
if (window.location.port != "") {
|
||||
host = host + ":" + window.location.port;
|
||||
}
|
||||
return host;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user