From a55334e4a34656e3da0c42fe91f0d625770abaa0 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 3 Feb 2022 14:10:43 +1100 Subject: [PATCH] Added redirect to HNS site --- assets/js/handshake.js | 6 ++++++ faq.html | 2 +- index.html | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 assets/js/handshake.js diff --git a/assets/js/handshake.js b/assets/js/handshake.js new file mode 100644 index 0000000..702c9a0 --- /dev/null +++ b/assets/js/handshake.js @@ -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"); +} \ No newline at end of file diff --git a/faq.html b/faq.html index 97d2020..3879c1c 100644 --- a/faq.html +++ b/faq.html @@ -72,7 +72,7 @@ - + diff --git a/index.html b/index.html index 4b7d628..42081e0 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ - +