[+] Serve https

This commit is contained in:
2025-03-25 13:57:41 -04:00
parent 51fa829117
commit 313156aa00
7 changed files with 60 additions and 13 deletions
+3 -2
View File
File diff suppressed because one or more lines are too long
-4
View File
@@ -68,10 +68,6 @@
}
} catch (err) { error = `无法启动 NFC,请检查权限或设备支持: ${err}` }
}
// If we're using http, redirect to https
if (location.protocol === 'http:' && location.hostname !== 'localhost')
location.replace(`https:${location.href.substring(location.protocol.length)}`)
</script>
<main>