From a5fbc43be4cf0d020d26aef5d5c1f7c137ebb9f8 Mon Sep 17 00:00:00 2001 From: enzi221 Date: Sun, 25 May 2025 00:55:14 +0900 Subject: [PATCH] fix: Guest account can't access alerts properly --- src/lib/Others/AlertComp.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Others/AlertComp.svelte b/src/lib/Others/AlertComp.svelte index 33c87def..63339c88 100644 --- a/src/lib/Others/AlertComp.svelte +++ b/src/lib/Others/AlertComp.svelte @@ -63,7 +63,7 @@ { if(e.origin.startsWith("https://sv.risuai.xyz") || e.origin.startsWith("http://127.0.0.1") || e.origin === window.location.origin){ - if(e.data.msg.data.vaild && $alertStore.type === 'login'){ + if(e.data.msg?.data?.vaild && $alertStore.type === 'login'){ $alertStore = { type: 'none', msg: JSON.stringify(e.data.msg)