Nathanwoodburn.github.io/templates/assets/js/handshake.js

7 lines
285 B
JavaScript
Raw Normal View History

2023-02-13 20:14:50 +11:00
if (window.location.hostname != document.currentScript.getAttribute('domain')){
2023-06-14 23:31:32 +10:00
window.location.href = "https://" + document.currentScript.getAttribute('domain') + window.location.pathname + window.location.search + window.location.hash;
2023-02-13 20:14:50 +11:00
}
else{
console.log("Already Redirected");
}