Nathanwoodburn.github.io/templates/assets/js/handshake.js
Nathan Woodburn 1855e18315
All checks were successful
Build Docker / Build Image (push) Successful in 30s
fix: Add routes for handshake redirect scripts
2023-11-02 21:13:59 +11:00

7 lines
285 B
JavaScript

if (window.location.hostname != document.currentScript.getAttribute('domain')){
window.location.href = "https://" + document.currentScript.getAttribute('domain') + window.location.pathname + window.location.search + window.location.hash;
}
else{
console.log("Already Redirected");
}