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.
window
1 parent bd81b55 commit 6df92dbCopy full SHA for 6df92db
modules/get-json-file.js
@@ -4,7 +4,7 @@
4
async function getJSONFromFile(path = "") {
5
let module = null;
6
try {
7
- module = await import("" + new URL(path, window.location).href, {
+ module = await import("" + new URL(path, globalThis.location).href, {
8
with: { type: "json" },
9
});
10
} catch (error) {}
0 commit comments