fix: Add https.js

This commit is contained in:
2024-03-27 20:41:24 +11:00
parent dcc28483e3
commit e844936a00
2 changed files with 10 additions and 0 deletions

6
templates/https.js Normal file
View File

@@ -0,0 +1,6 @@
if (location.protocol !== 'https:') {
location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
else{
console.log("Already Https");
}