From dc6e9262c6fdcc6c16500f21912c0824de355013 Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:36:30 +1000 Subject: [PATCH] fixed bugs in code. --- main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 970142a..841ddd9 100644 --- a/main.js +++ b/main.js @@ -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 = ""; } }; \ No newline at end of file