mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix some unhandled promises and refactor some code
This commit is contained in:
parent
d7161f9d65
commit
df599db415
9 changed files with 8 additions and 23 deletions
|
@ -106,15 +106,6 @@ import '../../assets/css/scrollstyles.css';
|
|||
tryRemoveElement(dlg);
|
||||
}
|
||||
}
|
||||
|
||||
//resolve();
|
||||
// if we just called history.back(), then use a timeout to allow the history events to fire first
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
element: dlg,
|
||||
closedByBack: self.closedByBack
|
||||
});
|
||||
}, 1);
|
||||
}
|
||||
|
||||
dlg.addEventListener('close', onDialogClosed);
|
||||
|
@ -265,6 +256,7 @@ import '../../assets/css/scrollstyles.css';
|
|||
dom.addEventListener(dlg, dom.whichAnimationEvent(), onFinish, {
|
||||
once: true
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue