mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2025-12-11 14:55:10 -06:00
Enhance fetch interceptor to support new GraphQL response content type
This commit is contained in:
parent
215ee83f34
commit
d0d0b2a774
@ -12,7 +12,8 @@
|
|||||||
if (
|
if (
|
||||||
typeof resource === "string" &&
|
typeof resource === "string" &&
|
||||||
contentType &&
|
contentType &&
|
||||||
contentType.indexOf("application/json") !== -1 &&
|
(contentType.indexOf('application/json') !== -1 ||
|
||||||
|
contentType.indexOf('application/graphql-response+json') !== -1) &&
|
||||||
resource.endsWith("/graphql")
|
resource.endsWith("/graphql")
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user