mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Revert single optional check in app router
This commit is contained in:
parent
df3f53bbc0
commit
43adbd5490
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class AppRouter {
|
|||
msgTimeout;
|
||||
promiseShow;
|
||||
resolveOnNextShow;
|
||||
previousRoute;
|
||||
previousRoute = {};
|
||||
|
||||
constructor() {
|
||||
document.addEventListener('viewshow', () => this.onViewShow());
|
||||
|
@ -482,7 +482,7 @@ class AppRouter {
|
|||
|
||||
#getHandler(route) {
|
||||
return (ctx, next) => {
|
||||
const ignore = route.dummyRoute === true || this.previousRoute?.dummyRoute === true;
|
||||
const ignore = route.dummyRoute === true || this.previousRoute.dummyRoute === true;
|
||||
this.previousRoute = route;
|
||||
if (ignore) {
|
||||
// Resolve 'show' promise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue