Enhance fetch interceptor to support new GraphQL response content type

This commit is contained in:
DogmaDragon 2025-10-21 12:29:02 +03:00
parent 215ee83f34
commit d0d0b2a774

View File

@ -12,7 +12,8 @@
if (
typeof resource === "string" &&
contentType &&
contentType.indexOf("application/json") !== -1 &&
(contentType.indexOf('application/json') !== -1 ||
contentType.indexOf('application/graphql-response+json') !== -1) &&
resource.endsWith("/graphql")
) {
try {