[fix] accountstorage rerequiring login
This commit is contained in:
@@ -46,8 +46,10 @@ export class AccountStorage{
|
|||||||
'x-risu-auth': this.auth
|
'x-risu-auth': this.auth
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
localStorage.setItem("fallbackRisuToken",await alertLogin())
|
if(da.status === 403){
|
||||||
this.checkAuth()
|
localStorage.setItem("fallbackRisuToken",await alertLogin())
|
||||||
|
this.checkAuth()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(da.status < 200 || da.status >= 300){
|
if(da.status < 200 || da.status >= 300){
|
||||||
throw await da.text()
|
throw await da.text()
|
||||||
|
|||||||
Reference in New Issue
Block a user