mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-30 13:30:02 +00:00
Allow falling back to rest
This commit is contained in:
parent
72c8cf65dc
commit
093e93a739
2 changed files with 2 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue