mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Reduce the usage of require
statements in code-paths not protected by pre-processor and/or run-time checks
This replaces some additional `require`/`exports` usage with standard `import`/`export` statements instead. Hence another, small, part in the effort to reduce the reliance on SystemJS-specific functionality in the development viewer.
This commit is contained in:
parent
8b9492a5c4
commit
ec0ab91a2b
4 changed files with 17 additions and 12 deletions
|
@ -678,7 +678,7 @@ function isMessagePort(maybePort) {
|
|||
);
|
||||
}
|
||||
|
||||
// Worker thread (and not node.js)?
|
||||
// Worker thread (and not Node.js)?
|
||||
if (
|
||||
typeof window === "undefined" &&
|
||||
!isNodeJS &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue