diff --git a/gulpfile.mjs b/gulpfile.mjs index fb6779a97..d6d67742f 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -84,7 +84,7 @@ const ENV_TARGETS = [ "last 2 versions", "Chrome >= 98", "Firefox ESR", - "Safari >= 15.4", + "Safari >= 16.4", "Node >= 18", "> 1%", "not IE > 0", diff --git a/src/core/writer.js b/src/core/writer.js index 99fa65555..417f1d566 100644 --- a/src/core/writer.js +++ b/src/core/writer.js @@ -67,10 +67,7 @@ async function writeStream(stream, buffer, transform) { // The number 256 is arbitrary, but it should be reasonable. const MIN_LENGTH_FOR_COMPRESSING = 256; - if ( - typeof CompressionStream !== "undefined" && - (bytes.length >= MIN_LENGTH_FOR_COMPRESSING || isFilterZeroFlateDecode) - ) { + if (bytes.length >= MIN_LENGTH_FOR_COMPRESSING || isFilterZeroFlateDecode) { try { const cs = new CompressionStream("deflate"); const writer = cs.writable.getWriter(); diff --git a/web/app.js b/web/app.js index 3c6457459..048707c11 100644 --- a/web/app.js +++ b/web/app.js @@ -399,9 +399,6 @@ const PDFViewerApplication = { const container = appConfig.mainContainer, viewer = appConfig.viewerContainer; const annotationEditorMode = AppOptions.get("annotationEditorMode"); - const isOffscreenCanvasSupported = - AppOptions.get("isOffscreenCanvasSupported") && - FeatureTest.isOffscreenCanvasSupported; const pageColors = AppOptions.get("forcePageColors") || window.matchMedia("(forced-colors: active)").matches @@ -478,7 +475,7 @@ const PDFViewerApplication = { if (appConfig.annotationEditorParams) { if (annotationEditorMode !== AnnotationEditorType.DISABLE) { - if (AppOptions.get("enableStampEditor") && isOffscreenCanvasSupported) { + if (AppOptions.get("enableStampEditor")) { appConfig.toolbar?.editorStampButton?.classList.remove("hidden"); }