Skip to content

Commit

Permalink
fix(worker): fix public path in worker (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkirik committed Mar 11, 2024
1 parent efe372f commit 95babef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/webpack/worker/web-worker.mts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function generateWorkerLoader(url: string | URL) {
const publicPath = __webpack_public_path__;
const workerPublicPath = publicPath.match(/^https?:\/\//)
? publicPath
: new URL(publicPath, window.location.href).toString();
: new URL(publicPath, window.location.origin).toString();
const objectURL = URL.createObjectURL(
new Blob(
[
Expand Down

0 comments on commit 95babef

Please sign in to comment.