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

Revert "Bundle the <dialog> polyfill-CSS in the GENERIC legacy/-viewer (PR 14710 follow-up)"

This reverts commit bb8f5ec20b now that Safari-compatibility is updated.
This commit is contained in:
Jonas Jenwald 2023-04-29 08:51:39 +02:00
parent cfa15bbf59
commit c5eb79577a
2 changed files with 0 additions and 19 deletions

View file

@ -44,15 +44,6 @@ class OverlayManager {
) {
const dialogPolyfill = require("dialog-polyfill/dist/dialog-polyfill.js");
dialogPolyfill.registerDialog(dialog);
if (!this._dialogPolyfillCSS) {
this._dialogPolyfillCSS = true;
const style = document.createElement("style");
style.textContent = PDFJSDev.eval("DIALOG_POLYFILL_CSS");
document.head.prepend(style);
}
}
dialog.addEventListener("cancel", evt => {