Merge pull request #17265 from Snuffleupagus/createCDNWrapper-blob-type
Set a type for the `Blob` used in `createCDNWrapper` (issue 17259)
This commit is contained in:
commit
37a8311b4c
@ -2008,7 +2008,9 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
|||||||
// We want this function to fail in case if createObjectURL or Blob do not
|
// We want this function to fail in case if createObjectURL or Blob do not
|
||||||
// exist or fail for some reason -- our Worker creation will fail anyway.
|
// exist or fail for some reason -- our Worker creation will fail anyway.
|
||||||
const wrapper = `await import("${url}");`;
|
const wrapper = `await import("${url}");`;
|
||||||
return URL.createObjectURL(new Blob([wrapper]));
|
return URL.createObjectURL(
|
||||||
|
new Blob([wrapper], { type: "text/javascript" })
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user