Skip to content

Commit 6df92db

Browse files
Remove window reference II
1 parent bd81b55 commit 6df92db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/get-json-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
async function getJSONFromFile(path = "") {
55
let module = null;
66
try {
7-
module = await import("" + new URL(path, window.location).href, {
7+
module = await import("" + new URL(path, globalThis.location).href, {
88
with: { type: "json" },
99
});
1010
} catch (error) {}

0 commit comments

Comments
 (0)