1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix issues

This commit is contained in:
MrTimscampi 2020-08-12 15:21:56 +02:00
parent 2d5db406c8
commit e432f3fed2
2 changed files with 3 additions and 4 deletions

View file

@ -21,8 +21,8 @@ import globalize from 'globalize';
}
#definePluginRoute(route, plugin) {
route.contentPath = this.#mapPath(plugin, route.path);
route.path = this.mapRoute(plugin, route);
route.contentPath = this.mapPath(plugin, route.path);
route.path = this.#mapRoute(plugin, route);
Emby.App.defineRoute(route, plugin.id);
}
@ -128,7 +128,7 @@ import globalize from 'globalize';
return '/plugins/' + plugin.id + '/' + route;
}
#mapPath(plugin, path, addCacheParam) {
mapPath(plugin, path, addCacheParam) {
if (typeof plugin === 'string') {
plugin = this.pluginsList.filter((p) => {
return (p.id || p.packageName) === plugin;