Allow falling back to rest

This commit is contained in:
Jordan Eldredge 2022-03-22 19:54:49 -07:00
parent 72c8cf65dc
commit 093e93a739
2 changed files with 2 additions and 2 deletions

View file

@ -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";

View file

@ -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);