Add query to set atlas data (URL) to use 2

Query is used generally for tracking, let's differ that
This commit is contained in:
Hans5958 2023-04-17 11:13:04 +07:00
parent ccc1d07b98
commit d292ffc825

View file

@ -79,7 +79,7 @@ async function init() {
// For Reviewing Reddit Changes
// const atlasRef = '../tools/temp-atlas.json'
const atlasRef = params.get('ref') || './atlas.json'
const atlasRef = params.get('atlas') || './atlas.json'
const atlasResp = await fetch(atlasRef)
atlas = await atlasResp.json()
atlas.sort((a, b) => a.center[1] - b.center[1])
@ -141,7 +141,7 @@ async function init() {
initExplore()
} else if (mode.startsWith("diff")) {
try {
const liveAtlasRef = params.get('liveref') || `https://${prodDomain}/atlas.json`
const liveAtlasRef = params.get('liveatlas') || `https://${prodDomain}/atlas.json`
const liveAtlasResp = await fetch(liveAtlasRef)
let liveAtlas = await liveAtlasResp.json()
liveAtlas = updateAtlasAll(liveAtlas)