hns-links/templates/https.js

7 lines
162 B
JavaScript
Raw Normal View History

2024-03-27 20:41:24 +11:00
if (location.protocol !== 'https:') {
location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
else{
console.log("Already Https");
}