parent
1ea9a2d651
commit
b16423b51c
@ -40,7 +40,7 @@ const captchaMessage = [
|
||||
];
|
||||
|
||||
function parseResponse(res) {
|
||||
if (res.headers.get('content-type').startsWith('application/json')) return res.json();
|
||||
if (res.headers.get('content-type')?.startsWith('application/json')) return res.json();
|
||||
return res.arrayBuffer(); // Cre: TheDevYellowy
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user