diff --git a/src/api/api.ts b/src/api/api.ts index e92ce82..910b9c5 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -161,7 +161,7 @@ export class ApiHandler { } if (result.length > 0) { - if (response.headers.get('content-type') === 'application/json') { + if (response.headers.get('content-type')?.includes('application/json')) { try { result = JSON.parse(result); } catch (err) {