From b4257bfda8f7f517288ba7b0efb27175075226e5 Mon Sep 17 00:00:00 2001 From: vitorsemeano Date: Mon, 18 Mar 2019 23:48:34 +0000 Subject: [PATCH] optimizing defineRoute in routes.js --- src/scripts/routes.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/scripts/routes.js b/src/scripts/routes.js index 97c13c3a45..1bbb49fc8d 100644 --- a/src/scripts/routes.js +++ b/src/scripts/routes.js @@ -12,12 +12,10 @@ define([ "listViewStyle", "dashboardcss"], function () { - function defineRoute(newRoute, dictionary) { - var baseRoute = Emby.Page.baseUrl(); + function defineRoute(newRoute) { var path = newRoute.path; - path = path.replace(baseRoute, ""); console.log("Defining route: " + path); - newRoute.dictionary = newRoute.dictionary || dictionary || "core"; + newRoute.dictionary = "core"; Emby.Page.addRoute(path, newRoute); }