mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix resolving of history back promise
This commit is contained in:
parent
7f1823ade4
commit
472ce47020
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,11 @@ class AppRouter {
|
|||
if (this.promiseShow) await this.promiseShow;
|
||||
|
||||
this.promiseShow = new Promise((resolve) => {
|
||||
this.resolveOnNextShow = resolve;
|
||||
const unlisten = history.listen(() => {
|
||||
unlisten();
|
||||
this.promiseShow = null;
|
||||
resolve();
|
||||
});
|
||||
history.back();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue