Update main.js

This commit is contained in:
ash 2022-04-05 15:37:39 +01:00 committed by GitHub
parent b0936139a1
commit 3ec0a9bd2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ init();
async function init(){ async function init(){
let resp = await fetch("./atlas.json"); let resp = await fetch("/atlas.json");
atlas = await resp.json(); atlas = await resp.json();
atlas.sort(function (a, b) { atlas.sort(function (a, b) {
if (a.center[1] < b.center[1]) { if (a.center[1] < b.center[1]) {
@ -105,7 +105,7 @@ async function init(){
var desiredZoom; var desiredZoom;
var zoomAnimationFrame; var zoomAnimationFrame;
var mode = "overlap"; var mode = "view";
var args = window.location.search; var args = window.location.search;
if(args){ if(args){