Skip to content

Commit f01b13d

Browse files
committed
Use the worker created in the child actor (bug 1966721)
1 parent b3ccc55 commit f01b13d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)