[fix] accountstorage rerequiring login

This commit is contained in:
kwaroran
2023-06-30 16:55:25 +09:00
parent 9042059196
commit 961e26bd8e

View File

@@ -46,8 +46,10 @@ export class AccountStorage{
'x-risu-auth': this.auth
}
})
localStorage.setItem("fallbackRisuToken",await alertLogin())
this.checkAuth()
if(da.status === 403){
localStorage.setItem("fallbackRisuToken",await alertLogin())
this.checkAuth()
}
}
if(da.status < 200 || da.status >= 300){
throw await da.text()