From 51fa82911709cb3e234cb14817ba92d88de1f56d Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 25 Mar 2025 13:47:36 -0400 Subject: [PATCH] [O] Force https --- web/src/App.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/App.svelte b/web/src/App.svelte index 5e30e15..8670288 100644 --- a/web/src/App.svelte +++ b/web/src/App.svelte @@ -68,11 +68,16 @@ } } 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)}`)

AimeWeb

-

点击一个卡就可以刷了,没有卡的话请先添加卡片。如果不知道卡号的话可以去 NFC Tools 扫

+

点击一个卡就可以刷了,没有卡的话请先在下面添加卡片。 + {#if !nfcAvail} 如果不知道卡号的话可以用 NFC Tools App 扫 {/if}

{error}