This commit is contained in:
the-djmaze 2022-09-08 10:07:27 +02:00
parent 9dcdd7e41c
commit 18096cb6ee
11 changed files with 28 additions and 26 deletions

View file

@ -31,7 +31,7 @@ export class AbstractScreen {
let route = new Crossroads(),
fMatcher = (this.onRoute || (()=>0)).bind(this);
routes.forEach(item => item && route && (route.addRoute(item[0], fMatcher).rules = item[1]));
routes.forEach(item => item && (route.addRoute(item[0], fMatcher).rules = item[1]));
this.__cross = route;
}

View file

@ -52,7 +52,6 @@ const
// Firefox < 98 / Safari < 15.4 HTMLDialogElement not defined
if (!vmDom.showModal) {
vmDom.classList.add('polyfill');
vmDom.showModal = () => {
vmDom.backdrop ||
vmDom.before(vmDom.backdrop = Element.fromHTML('<div class="dialog-backdrop"></div>'));
@ -67,7 +66,7 @@ const
vmDom.returnValue = v;
vmDom.removeAttribute('open', null);
vmDom.open = false;
vmDom.dispatchEvent(new CustomEvent('close'));
// vmDom.dispatchEvent(new CustomEvent('close'));
// }
};
}