Rolling 2021-11-23

This commit is contained in:
jomjol
2021-11-23 17:57:07 +01:00
parent 9ad118814a
commit 58124d27bf
13 changed files with 23 additions and 12 deletions

View File

@@ -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;
}