fixed bugs in code.

This commit is contained in:
Thomas G 2022-06-19 15:36:30 +10:00
parent c7ac8a345c
commit dc6e9262c6
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ window.onload = function() {
if (window.location.hostname == "") {
alerttext.innerHTML = "You are using this locally.";
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.";
alert.className = "";
} else if (window.location.hostname == "MORBLOX.com") {
@ -25,5 +25,8 @@ window.onload = function() {
} else if (window.location.hostname == "morblox.us") {
alerttext.innerHTML = "You are using morblox.us";
alert.className = "";
} else {
alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`;
alert.className = "";
}
};