From 96313f23f5f6ee1a0c01a442f4297f26db83fe72 Mon Sep 17 00:00:00 2001 From: Ilkka Kuosmanen Date: Tue, 2 Apr 2024 11:50:59 +0300 Subject: [PATCH] Update --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a99d537..d289899 100644 --- a/src/index.js +++ b/src/index.js @@ -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