mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Tweak PDFWorkerUtil.createCDNWrapper
to account for JavaScript modules (PR 17055 follow-up)
This commit is contained in:
parent
36c3c0a4c1
commit
af9a7b0003
1 changed files with 1 additions and 1 deletions
|
@ -2007,7 +2007,7 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
|||
// We will rely on blob URL's property to specify origin.
|
||||
// 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.
|
||||
const wrapper = `importScripts("${url}");`;
|
||||
const wrapper = `await import("${url}");`;
|
||||
return URL.createObjectURL(new Blob([wrapper]));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue