diff --git a/src/shared/compatibility.js b/src/shared/compatibility.js index 35a42ab4bac1c0..cf623e0c55f5c5 100644 --- a/src/shared/compatibility.js +++ b/src/shared/compatibility.js @@ -54,11 +54,6 @@ import { isNodeJS } from "./is_node.js"; // Support: Chrome<98, Safari<15.4 (function checkStructuredClone() { - if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) { - // The current image decoders are synchronous, hence `structuredClone` - // shouldn't need to be polyfilled for the IMAGE_DECODERS build target. - return; - } if (globalThis.structuredClone) { return; }