Skip to content

Commit

Permalink
changed source
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaylaud committed Oct 15, 2020
1 parent 5fc3643 commit 60e86d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const BACKGROUND_IMAGE_URL =
"//cdn.jsdelivr.net/npm/three-globe/example/img/night-sky.png";
export const GEOJSON_URL =
"https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_110m_admin_0_countries.geojson";
export const CASES_API = "https://covid3d-backend.now.sh";
export const CASES_API =
"https://raw.githubusercontent.com/wobsoriano/covid3d/master/data.json";

export const FLAG_ENDPOINT = "https://corona.lmao.ninja/assets/img/flags";
6 changes: 3 additions & 3 deletions src/Globe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ async function getCases() {

dates = Object.keys(countries.India);

updateCounters();
updatePolygonsData();
await updateCounters();
await updatePolygonsData();

updatePointOfView();
await updatePointOfView();
}

function updateCounters() {
Expand Down

0 comments on commit 60e86d0

Please sign in to comment.