Merge pull request #18587 from Snuffleupagus/PDFViewer-check-AbortSignal-any
Check that `AbortSignal.any()` is supported in `PDFViewer` too (PR 18586 follow-up)
This commit is contained in:
commit
daabc7abea
@ -880,7 +880,11 @@ class PDFViewer {
|
||||
viewer.before(element);
|
||||
}
|
||||
|
||||
if (annotationEditorMode !== AnnotationEditorType.DISABLE) {
|
||||
if (
|
||||
((typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) ||
|
||||
typeof AbortSignal.any === "function") &&
|
||||
annotationEditorMode !== AnnotationEditorType.DISABLE
|
||||
) {
|
||||
const mode = annotationEditorMode;
|
||||
|
||||
if (pdfDocument.isPureXfa) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user