Fix a rare error regarding interactions

#9218
This commit is contained in:
Elysia 2023-03-12 11:19:37 +07:00
parent 1ea9a2d651
commit b16423b51c

View File

@ -40,7 +40,7 @@ const captchaMessage = [
]; ];
function parseResponse(res) { 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 return res.arrayBuffer(); // Cre: TheDevYellowy
} }