niutech / showModalDialog

window.showModalDialog polyfill using a <dialog> element
https://niutech.github.io/showModalDialog/demo.html
Apache License 2.0
177 stars 88 forks source link

Not work with Firefox #29

Closed Jim25 closed 7 years ago

Jim25 commented 7 years ago

Lib and Demo code not work with Firefox.

niutech commented 7 years ago

This is due to HTMLDialogElement.showModal() being disabled by default in Firefox. You can enable it by setting dom.dialog_element.enabled to true in about:config.