From 54be86ca44668ab0ecb4d3bc38386fbf92bf4454 Mon Sep 17 00:00:00 2001 From: Wes Bryie <93141203+WesleyBryie@users.noreply.github.com> Date: Tue, 23 Nov 2021 10:03:26 -0500 Subject: [PATCH] maybe? --- js/domainChecker.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/domainChecker.js b/js/domainChecker.js index 6c7e2c9..a8d37d1 100644 --- a/js/domainChecker.js +++ b/js/domainChecker.js @@ -3,6 +3,8 @@ function startCheck() { console.log("Starting domain check. This check makes sure that the website hosted at https://github.com/wesleybryie/wes-website/ is running on https://wesbryie.cf.") }; +startCheck(); + var firstDot = window.location.hostname.indexOf('.'); var tld = ".cf"; var isSubdomain = firstDot < window.location.hostname.indexOf(tld); @@ -16,14 +18,14 @@ else { } function isDomainCorrect() { - if (domain = "wesbryie") { + if (domain = "wesbryie" + tld) { console.log("Thank you for using wesbryie.cf."); } else { console.log("why uh, why ya doin that? why ya taking my code?"); - stop(); close(); + stop(); } }