fix: Guest account can't access alerts properly
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
|
||||
<svelte:window onmessage={async (e) => {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user