Fix checks on blog and port containers

This commit is contained in:
idk
2021-09-26 00:23:48 -04:00
parent 02f3cc871d
commit 95a282c07f

10
host.js
View File

@ -24,12 +24,14 @@ function localHost(url) {
hostname = url.split("/")[0];
}
hostname = hostname.split(":")[0];
console.log("(isolate) hostname localhost", hostname);
console.log("(isolate) url localhost", url);
console.log("(urlcheck) hostname localhost", hostname);
console.log("(urlcheck) url localhost", url);
if (hostname === "127.0.0.1") {
if (url.indexOf("7669") != -1) return "irc";
if (url.indexOf("\:8084") != -1) return "blog";
if (url.indexOf("\:7669") != -1) return "irc";
} else if (hostname === "localhost") {
if (url.indexOf("8084") != -1) return "blog";
if (url.indexOf("\:8084") != -1) return "blog";
if (url.indexOf("\:7669") != -1) return "irc";
}
return false;