Nathanwoodburn.github.io/handshake.js
2023-02-13 20:14:50 +11:00

7 lines
237 B
JavaScript

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