mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Merge pull request #16291 from Snuffleupagus/issue-16289
Limit the `Path2D`-checks in the worker-thread to Node.js (PR 16238 follow-up, issue 16289)
This commit is contained in:
commit
ab2773416b
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class WorkerMessageHandler {
|
||||||
// a non-translated/non-polyfilled build of the library, since that would
|
// a non-translated/non-polyfilled build of the library, since that would
|
||||||
// quickly fail anyway because of missing functionality.
|
// quickly fail anyway because of missing functionality.
|
||||||
if (
|
if (
|
||||||
typeof Path2D === "undefined" ||
|
(isNodeJS && typeof Path2D === "undefined") ||
|
||||||
typeof ReadableStream === "undefined"
|
typeof ReadableStream === "undefined"
|
||||||
) {
|
) {
|
||||||
const partialMsg =
|
const partialMsg =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue