[+] Serve https
This commit is contained in:
Vendored
+3
-2
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user