Skip to content

Commit d0d0b2a

Browse files
committed
Enhance fetch interceptor to support new GraphQL response content type
1 parent 215ee83 commit d0d0b2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/hotCards/utils/fetchInterceptor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
if (
1313
typeof resource === "string" &&
1414
contentType &&
15-
contentType.indexOf("application/json") !== -1 &&
15+
(contentType.indexOf('application/json') !== -1 ||
16+
contentType.indexOf('application/graphql-response+json') !== -1) &&
1617
resource.endsWith("/graphql")
1718
) {
1819
try {

0 commit comments

Comments
 (0)