Merge pull request #19959 from calixteman/undefined_worker_port

Fix pdfjsPreloadedWorker when it's undefined
This commit is contained in:
calixteman 2025-05-19 17:29:18 +02:00 committed by GitHub
commit 72faeeab93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -504,7 +504,7 @@ const defaultOptions = {
/** @type {Object} */
value:
typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")
? globalThis.pdfjsPreloadedWorker
? globalThis.pdfjsPreloadedWorker || null
: null,
kind: OptionKind.WORKER,
},