Skip to content

Commit

Permalink
add method
Browse files Browse the repository at this point in the history
  • Loading branch information
39zde committed Nov 8, 2024
1 parent d681e6d commit b57ee3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ class UtilityFunctions {
if (importsPath[0].startsWith("/")) {
importsPath[0] = importsPath[0].replace("/", "");
}
const importedScriptRequest = await fetch(location.origin + location.pathname + importsPath[0]);
const importedScriptRequest = await fetch(location.origin + location.pathname + importsPath[0], {
method: "GET",
});
if (!importedScriptRequest.ok) {
throw new Error("Failed to fetch imported script");
}
Expand Down

0 comments on commit b57ee3d

Please sign in to comment.