remove parser logs and fix warns

This commit is contained in:
kwaroran
2024-07-06 02:16:56 +09:00
parent 02b0e0cf9f
commit e4315b333a
2 changed files with 5 additions and 7 deletions

View File

@@ -27,8 +27,11 @@ export class AccountStorage{
'X-Format': 'nocheck'
}
})
if(da.headers.get('x-risu-status') === 'warn'){
AccountWarning.set((await da.json()).warning)
if(da.headers.get('Content-Type') === 'application/json'){
const json = (await da.json())
if(json?.warning){
AccountWarning.set(json.warning)
}
}
if(da.status === 304){