[fix] accountstorage rerequiring login in write
This commit is contained in:
@@ -21,8 +21,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()
|
||||
|
||||
Reference in New Issue
Block a user