Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snekw committed Apr 2, 2024
1 parent 94c28f7 commit 96313f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ let yearAnimationActive = true
let interval

// Fetch data set used in example.
fetch(document.head.baseURI + 'examples/assets/1102/population60-21.json')
fetch(new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'examples/assets/1102/population60-21.json')
.then((r) => r.json())
.then((populationData) => {
// stop timeline, change the year and change bg color of slider by clicking on slider
Expand Down

0 comments on commit 96313f2

Please sign in to comment.