Fix the annotationEditorMode-compatibility for older browsers (PR 15113 follow-up)

This commit is contained in:
Jonas Jenwald 2022-06-29 15:58:57 +02:00
parent ce63663282
commit 63f2d0bb64
2 changed files with 7 additions and 2 deletions

View file

@ -39,9 +39,10 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
}
})();
// Support: Safari<13.1
(function checkResizeObserver() {
if (typeof ResizeObserver === "undefined") {
compatibilityParams.annotationEditorEnabled = false;
compatibilityParams.annotationEditorMode = -1;
}
})();
}