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 4b3275c commit 9cbf4ba
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 @@ -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')
Expand Down

0 comments on commit 9cbf4ba

Please sign in to comment.