Skip to content

Commit

Permalink
pass a function instead of the uri (fix regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Jul 18, 2024
1 parent 864e918 commit 75de211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/z-worker-inline-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export {
function configureWebWorker(configure, options = {}) {
// eslint-disable-next-line quotes
const code = `__workerCode__`;
const uri = options.useDataURI ?
const uri = () => options.useDataURI ?
`data:text/javascript,${encodeURIComponent(code)}` :
URL.createObjectURL(new Blob([code], { type: "text/javascript" }));
configure({ workerScripts: { inflate: [uri], deflate: [uri] } });
Expand Down

0 comments on commit 75de211

Please sign in to comment.