1
0
Fork 0
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:
Dmitry Lyzo 2022-11-03 21:29:21 +03:00
parent 7f1823ade4
commit 472ce47020

View file

@ -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();
});