mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix code smells
This commit is contained in:
parent
c961371835
commit
4d4725f05d
1 changed files with 1 additions and 8 deletions
|
@ -24,7 +24,6 @@ class AppRouter {
|
||||||
currentViewLoadRequest;
|
currentViewLoadRequest;
|
||||||
firstConnectionResult;
|
firstConnectionResult;
|
||||||
forcedLogoutMsg;
|
forcedLogoutMsg;
|
||||||
isDummyBackToHome;
|
|
||||||
msgTimeout;
|
msgTimeout;
|
||||||
promiseShow;
|
promiseShow;
|
||||||
resolveOnNextShow;
|
resolveOnNextShow;
|
||||||
|
@ -227,7 +226,7 @@ class AppRouter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#loadContentUrl(ctx, next, route, request) {
|
#loadContentUrl(ctx, _next, route, request) {
|
||||||
let url;
|
let url;
|
||||||
if (route.contentPath && typeof (route.contentPath) === 'function') {
|
if (route.contentPath && typeof (route.contentPath) === 'function') {
|
||||||
url = route.contentPath(ctx.querystring);
|
url = route.contentPath(ctx.querystring);
|
||||||
|
@ -281,12 +280,6 @@ class AppRouter {
|
||||||
}
|
}
|
||||||
|
|
||||||
#sendRouteToViewManager(ctx, next, route, controllerFactory) {
|
#sendRouteToViewManager(ctx, next, route, controllerFactory) {
|
||||||
// TODO: isDummyBackToHome is never true?
|
|
||||||
if (this.isDummyBackToHome && route.type === 'home') {
|
|
||||||
this.isDummyBackToHome = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.#cancelCurrentLoadRequest();
|
this.#cancelCurrentLoadRequest();
|
||||||
const isBackNav = ctx.isBack;
|
const isBackNav = ctx.isBack;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue