Nathanwoodburn.github.io/templates/assets/js/https.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
162 B
JavaScript

if (location.protocol !== 'https:') {
location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
else{
console.log("Already Https");
}