mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Simplify, and tweak, a couple of PDFJSDev
checks
This removes a couple of, thanks to preceeding code, unnecessary `typeof PDFJSDev` checks, and also fixes a couple of incorrectly implemented (my fault) checks intended for `TESTING` builds.
This commit is contained in:
parent
7322a24ce4
commit
a39943554a
6 changed files with 11 additions and 11 deletions
|
@ -1639,7 +1639,6 @@ const PDFWorker = (function PDFWorkerClosure() {
|
|||
return worker.WorkerMessageHandler;
|
||||
}
|
||||
if (
|
||||
typeof PDFJSDev !== "undefined" &&
|
||||
PDFJSDev.test("GENERIC") &&
|
||||
isNodeJS &&
|
||||
// eslint-disable-next-line no-undef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue