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;
|
msgTimeout;
|
||||||
promiseShow;
|
promiseShow;
|
||||||
resolveOnNextShow;
|
resolveOnNextShow;
|
||||||
previousRoute;
|
previousRoute = {};
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
document.addEventListener('viewshow', () => this.onViewShow());
|
document.addEventListener('viewshow', () => this.onViewShow());
|
||||||
|
@ -482,7 +482,7 @@ class AppRouter {
|
||||||
|
|
||||||
#getHandler(route) {
|
#getHandler(route) {
|
||||||
return (ctx, next) => {
|
return (ctx, next) => {
|
||||||
const ignore = route.dummyRoute === true || this.previousRoute?.dummyRoute === true;
|
const ignore = route.dummyRoute === true || this.previousRoute.dummyRoute === true;
|
||||||
this.previousRoute = route;
|
this.previousRoute = route;
|
||||||
if (ignore) {
|
if (ignore) {
|
||||||
// Resolve 'show' promise
|
// Resolve 'show' promise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue