Skip to content

Commit

Permalink
Fix URL handling in ScriptHandler (#6639)
Browse files Browse the repository at this point in the history
  • Loading branch information
marklundin committed May 31, 2024
1 parent 9bc5c1a commit de2a1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/handlers/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class ScriptHandler extends ResourceHandler {
_loadModule(url, callback) {

// if we're in the browser, we need to use the full URL
const baseUrl = platform.browser ? window.location.origin : import.meta.url;
const baseUrl = platform.browser ? window.location.origin + window.location.pathname : import.meta.url;
const importUrl = new URL(url, baseUrl);

// @ts-ignore
Expand Down

0 comments on commit de2a1cd

Please sign in to comment.