mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Merge pull request #4138 from dmitrylyzo/fix-history-back-promise
Fix resolving of the history back Promise
This commit is contained in:
commit
d5c4482714
@ -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…
Reference in New Issue
Block a user