From 9cbf4babbe4bf174959e63688dd136002659b938 Mon Sep 17 00:00:00 2001 From: Ilkka Kuosmanen Date: Tue, 2 Apr 2024 11:51:07 +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 97c0545..041c42b 100644 --- a/src/index.js +++ b/src/index.js @@ -13,7 +13,7 @@ const chart3D = lightningChart() }) .setTitle('Asteroid 3D Model') -fetch(document.head.baseURI + 'examples/assets/1501/asteroid.obj') +fetch(new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'examples/assets/1501/asteroid.obj') .then((response) => response.text()) .then((data) => { console.log(data, 'data')