mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #15966 from Snuffleupagus/GlobalWorkerOptions-defaults
Simplify setting the `GlobalWorkerOptions` default values (PR 9480 follow-up)
This commit is contained in:
commit
16aef95937
1 changed files with 2 additions and 9 deletions
|
@ -27,14 +27,7 @@
|
|||
/** @type {GlobalWorkerOptionsType} */
|
||||
const GlobalWorkerOptions = Object.create(null);
|
||||
|
||||
GlobalWorkerOptions.workerPort =
|
||||
GlobalWorkerOptions.workerPort === undefined
|
||||
? null
|
||||
: GlobalWorkerOptions.workerPort;
|
||||
|
||||
GlobalWorkerOptions.workerSrc =
|
||||
GlobalWorkerOptions.workerSrc === undefined
|
||||
? ""
|
||||
: GlobalWorkerOptions.workerSrc;
|
||||
GlobalWorkerOptions.workerPort = null;
|
||||
GlobalWorkerOptions.workerSrc = "";
|
||||
|
||||
export { GlobalWorkerOptions };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue