maybe?
This commit is contained in:
parent
8e1f328540
commit
54be86ca44
|
@ -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.")
|
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 firstDot = window.location.hostname.indexOf('.');
|
||||||
var tld = ".cf";
|
var tld = ".cf";
|
||||||
var isSubdomain = firstDot < window.location.hostname.indexOf(tld);
|
var isSubdomain = firstDot < window.location.hostname.indexOf(tld);
|
||||||
|
@ -16,14 +18,14 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isDomainCorrect() {
|
function isDomainCorrect() {
|
||||||
if (domain = "wesbryie") {
|
if (domain = "wesbryie" + tld) {
|
||||||
console.log("Thank you for using wesbryie.cf.");
|
console.log("Thank you for using wesbryie.cf.");
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
console.log("why uh, why ya doin that? why ya taking my code?");
|
console.log("why uh, why ya doin that? why ya taking my code?");
|
||||||
stop();
|
|
||||||
close();
|
close();
|
||||||
|
stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue