From 093e93a739bb2a9972fae3895607d5512e7c7560 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Tue, 22 Mar 2022 19:54:49 -0700 Subject: [PATCH] Allow falling back to rest --- src/constants.js | 2 +- src/redux/epics.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.js b/src/constants.js index fa871791..267716c0 100644 --- a/src/constants.js +++ b/src/constants.js @@ -33,7 +33,7 @@ export const SCREENSHOT_CDN = "https://mirror.webampskins.org"; export const SKIN_CDN = params.vps ? "https://mirror.webampskins.org" : "https://cdn.webampskins.org"; -export const USE_GRAPHQL = true; //Boolean(params.graphql); +export const USE_GRAPHQL = Boolean(!params.rest); // Uncomment these if something goes wrong // export const SCREENSHOT_CDN = "https://cdn.webampskins.org"; // export const SKIN_CDN = "https://cdn.webampskins.org"; diff --git a/src/redux/epics.js b/src/redux/epics.js index 94199350..26b9bfca 100644 --- a/src/redux/epics.js +++ b/src/redux/epics.js @@ -477,7 +477,7 @@ const urlEpic = (actions, state) => { const proposedUrl = new URL(window.location.origin + url); // There are some params that we want to preserve across reloads. - for (const key of ["graphql", "vps"]) { + for (const key of ["rest", "vps"]) { let current = currentParams.get(key); if (current == null) { proposedUrl.searchParams.delete(key);