fix: urls

This commit is contained in:
Artemy 2023-06-09 12:34:44 +03:00
parent 6c6d755231
commit be7ba521bf

View file

@ -85,14 +85,9 @@ window.onload = async () => {
let lasticocords; let lasticocords;
loginfo("Getting geo data"); loginfo("Getting geo data");
let geo = await fetch( let geo = await fetch(geoURL);
geoURL || "https://erth2.github.io/movc/geo/geo.geojson"
);
loginfo("Getting country data"); loginfo("Getting country data");
let coarray = await fetch( let coarray = await fetch(countryInfoUrl);
countryInfoUrl ||
"https://erth2.github.io/movc/geo/countries/countries.json"
);
coarray = await coarray.json(); coarray = await coarray.json();
let countries = {}; let countries = {};
for (let i = 0; i < coarray.length; i++) for (let i = 0; i < coarray.length; i++)