fixed bugs in code.
This commit is contained in:
parent
c7ac8a345c
commit
dc6e9262c6
5
main.js
5
main.js
|
|
@ -16,7 +16,7 @@ window.onload = function() {
|
||||||
if (window.location.hostname == "") {
|
if (window.location.hostname == "") {
|
||||||
alerttext.innerHTML = "You are using this locally.";
|
alerttext.innerHTML = "You are using this locally.";
|
||||||
alert.className = "";
|
alert.className = "";
|
||||||
} else if (window.location.hostname == "github.com") {
|
} else if (window.location.hostname == "github.io") {
|
||||||
alerttext.innerHTML = "You are using this on the github pages site.";
|
alerttext.innerHTML = "You are using this on the github pages site.";
|
||||||
alert.className = "";
|
alert.className = "";
|
||||||
} else if (window.location.hostname == "MORBLOX.com") {
|
} else if (window.location.hostname == "MORBLOX.com") {
|
||||||
|
|
@ -25,5 +25,8 @@ window.onload = function() {
|
||||||
} else if (window.location.hostname == "morblox.us") {
|
} else if (window.location.hostname == "morblox.us") {
|
||||||
alerttext.innerHTML = "You are using morblox.us";
|
alerttext.innerHTML = "You are using morblox.us";
|
||||||
alert.className = "";
|
alert.className = "";
|
||||||
|
} else {
|
||||||
|
alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`;
|
||||||
|
alert.className = "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue