Skip to content

Commit f4a3e47

Browse files
authored
Merge pull request #19935 from calixteman/bug1966721
Use the worker created in the child actor (bug 1966721)
2 parents b3ccc55 + f01b13d commit f4a3e47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/app_options.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,10 @@ const defaultOptions = {
502502

503503
workerPort: {
504504
/** @type {Object} */
505-
value: null,
505+
value:
506+
typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")
507+
? globalThis.pdfjsPreloadedWorker
508+
: null,
506509
kind: OptionKind.WORKER,
507510
},
508511
workerSrc: {

0 commit comments

Comments
 (0)