From 2c1cd94013254598effbe7fffd17aa4ad007100b Mon Sep 17 00:00:00 2001 From: SirStendec Date: Mon, 13 Nov 2017 16:28:42 -0500 Subject: [PATCH] Disable modifications to the game directory query for now until I can find out how to make it work properly and not break things. Apollo needs a safer query merge system. --- src/utilities/compat/apollo.js | 35 ++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/src/utilities/compat/apollo.js b/src/utilities/compat/apollo.js index a3d376f2..f1d201ba 100644 --- a/src/utilities/compat/apollo.js +++ b/src/utilities/compat/apollo.js @@ -71,21 +71,36 @@ export default class Apollo extends Module { } }`); - this.registerModifier('GamePage_Game', `query { - game { - streams { - edges { - node { - createdAt - type - broadcaster { - profileImageURL(width: 70) + /*this.registerModifier('GamePage_Game', `query { + directory { + ... on Community { + streams { + edges { + node { + createdAt + type + broadcaster { + profileImageURL(width: 70) + } + } + } + } + } + ... on Game { + streams { + edges { + node { + createdAt + type + broadcaster { + profileImageURL(width: 70) + } } } } } } -}`); +}`);*/ }