We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8019393 commit 36d4822Copy full SHA for 36d4822
src/index.js
@@ -85,7 +85,9 @@ const displayDataSource = async (sourceName) => {
85
let data = dataSource.data
86
if (!data) {
87
console.time(`Load data set ${sourceName}`)
88
- data = await fetch(document.head.baseURI + `examples/assets/0052/${dataSource.file}`).then((r) => r.json())
+ data = await fetch(
89
+ new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + `examples/assets/0052/${dataSource.file}`,
90
+ ).then((r) => r.json())
91
dataSource.data = data
92
console.timeEnd(`Load data set ${sourceName}`)
93
}
0 commit comments