This commit is contained in:
the-djmaze 2022-11-16 15:55:16 +01:00
parent ff81aa6abc
commit e5ef0eaa6a
2 changed files with 10 additions and 0 deletions

View file

@ -51,6 +51,7 @@ const
// Firefox < 98 / Safari < 15.4 HTMLDialogElement not defined
if (!vmDom.showModal) {
vmDom.className = 'polyfill';
vmDom.showModal = () => {
vmDom.backdrop ||
vmDom.before(vmDom.backdrop = Element.fromHTML('<div class="dialog-backdrop"></div>'));