Merge pull request #15253 from Snuffleupagus/update-Safari-compat
[api-minor] Update the minimum supported Safari version
This commit is contained in:
commit
803e7af595
@ -84,7 +84,7 @@ const AUTOPREFIXER_CONFIG = {
|
||||
"last 2 versions",
|
||||
"Chrome >= 76",
|
||||
"Firefox ESR",
|
||||
"Safari >= 13",
|
||||
"Safari >= 13.1",
|
||||
"> 1%",
|
||||
"not IE > 0",
|
||||
"not dead",
|
||||
|
@ -38,13 +38,6 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
||||
compatibilityParams.maxCanvasPixels = 5242880;
|
||||
}
|
||||
})();
|
||||
|
||||
// Support: Safari<13.1
|
||||
(function checkResizeObserver() {
|
||||
if (typeof ResizeObserver === "undefined") {
|
||||
compatibilityParams.annotationEditorMode = -1;
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
||||
const OptionKind = {
|
||||
|
@ -67,7 +67,6 @@ import {
|
||||
} from "./ui_utils.js";
|
||||
import { AnnotationEditorLayerBuilder } from "./annotation_editor_layer_builder.js";
|
||||
import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
|
||||
import { compatibilityParams } from "./app_options.js";
|
||||
import { NullL10n } from "./l10n_utils.js";
|
||||
import { PDFPageView } from "./pdf_page_view.js";
|
||||
import { PDFRenderingQueue } from "./pdf_rendering_queue.js";
|
||||
@ -86,9 +85,6 @@ const PagesCountLimit = {
|
||||
PAUSE_EAGER_PAGE_INIT: 250,
|
||||
};
|
||||
|
||||
const ANNOTATION_EDITOR_MODE =
|
||||
compatibilityParams.annotationEditorMode ?? AnnotationEditorType.DISABLE;
|
||||
|
||||
function isValidAnnotationEditorMode(mode) {
|
||||
return (
|
||||
Object.values(AnnotationEditorType).includes(mode) &&
|
||||
@ -281,7 +277,7 @@ class BaseViewer {
|
||||
this.#annotationMode =
|
||||
options.annotationMode ?? AnnotationMode.ENABLE_FORMS;
|
||||
this.#annotationEditorMode =
|
||||
options.annotationEditorMode ?? ANNOTATION_EDITOR_MODE;
|
||||
options.annotationEditorMode ?? AnnotationEditorType.DISABLE;
|
||||
this.imageResourcesPath = options.imageResourcesPath || "";
|
||||
this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user