Added redirect to HNS site

This commit is contained in:
Nathan Woodburn
2022-02-03 14:10:43 +11:00
parent ecf9f3c31c
commit a55334e4a3
3 changed files with 8 additions and 2 deletions

6
assets/js/handshake.js Normal file
View File

@@ -0,0 +1,6 @@
if (window.location.hostname != document.currentScript.getAttribute('domain')){
window.location.href = "https://" + document.currentScript.getAttribute('domain') + window.location.pathname;
}
else{
console.log("Already Redirected");
}