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:
parent
c5eb79577a
commit
2c2acdfd1c
3 changed files with 12 additions and 35 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue