mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
v2.18.0
This commit is contained in:
parent
9dcdd7e41c
commit
18096cb6ee
11 changed files with 28 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
// }
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue