1
0
Fork 0
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:
Bill Thornton 2022-04-21 13:57:01 -04:00
parent c961371835
commit 4d4725f05d

View file

@ -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;