Merge pull request #17942 from Snuffleupagus/Safari-16
[api-minor] Update the minimum supported Safari version to 16.4
This commit is contained in:
commit
00af2e7b7a
@ -84,7 +84,7 @@ const ENV_TARGETS = [
|
|||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
"Chrome >= 98",
|
"Chrome >= 98",
|
||||||
"Firefox ESR",
|
"Firefox ESR",
|
||||||
"Safari >= 15.4",
|
"Safari >= 16.4",
|
||||||
"Node >= 18",
|
"Node >= 18",
|
||||||
"> 1%",
|
"> 1%",
|
||||||
"not IE > 0",
|
"not IE > 0",
|
||||||
|
|||||||
@ -67,10 +67,7 @@ async function writeStream(stream, buffer, transform) {
|
|||||||
// The number 256 is arbitrary, but it should be reasonable.
|
// The number 256 is arbitrary, but it should be reasonable.
|
||||||
const MIN_LENGTH_FOR_COMPRESSING = 256;
|
const MIN_LENGTH_FOR_COMPRESSING = 256;
|
||||||
|
|
||||||
if (
|
if (bytes.length >= MIN_LENGTH_FOR_COMPRESSING || isFilterZeroFlateDecode) {
|
||||||
typeof CompressionStream !== "undefined" &&
|
|
||||||
(bytes.length >= MIN_LENGTH_FOR_COMPRESSING || isFilterZeroFlateDecode)
|
|
||||||
) {
|
|
||||||
try {
|
try {
|
||||||
const cs = new CompressionStream("deflate");
|
const cs = new CompressionStream("deflate");
|
||||||
const writer = cs.writable.getWriter();
|
const writer = cs.writable.getWriter();
|
||||||
|
|||||||
@ -399,9 +399,6 @@ const PDFViewerApplication = {
|
|||||||
const container = appConfig.mainContainer,
|
const container = appConfig.mainContainer,
|
||||||
viewer = appConfig.viewerContainer;
|
viewer = appConfig.viewerContainer;
|
||||||
const annotationEditorMode = AppOptions.get("annotationEditorMode");
|
const annotationEditorMode = AppOptions.get("annotationEditorMode");
|
||||||
const isOffscreenCanvasSupported =
|
|
||||||
AppOptions.get("isOffscreenCanvasSupported") &&
|
|
||||||
FeatureTest.isOffscreenCanvasSupported;
|
|
||||||
const pageColors =
|
const pageColors =
|
||||||
AppOptions.get("forcePageColors") ||
|
AppOptions.get("forcePageColors") ||
|
||||||
window.matchMedia("(forced-colors: active)").matches
|
window.matchMedia("(forced-colors: active)").matches
|
||||||
@ -478,7 +475,7 @@ const PDFViewerApplication = {
|
|||||||
|
|
||||||
if (appConfig.annotationEditorParams) {
|
if (appConfig.annotationEditorParams) {
|
||||||
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
||||||
if (AppOptions.get("enableStampEditor") && isOffscreenCanvasSupported) {
|
if (AppOptions.get("enableStampEditor")) {
|
||||||
appConfig.toolbar?.editorStampButton?.classList.remove("hidden");
|
appConfig.toolbar?.editorStampButton?.classList.remove("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user