1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Revert "Add a <dialog> polyfill for the generic-legacy build"

This reverts commit c9f262c480 now that Safari-compatibility is updated.
This commit is contained in:
Jonas Jenwald 2023-04-29 08:55:08 +02:00
parent c5eb79577a
commit 2c2acdfd1c
3 changed files with 12 additions and 35 deletions

View file

@ -37,15 +37,6 @@ class OverlayManager {
}
this.#overlays.set(dialog, { canForceClose });
if (
typeof PDFJSDev !== "undefined" &&
PDFJSDev.test("GENERIC && !SKIP_BABEL") &&
!dialog.showModal
) {
const dialogPolyfill = require("dialog-polyfill/dist/dialog-polyfill.js");
dialogPolyfill.registerDialog(dialog);
}
dialog.addEventListener("cancel", evt => {
this.#active = null;
});