mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix issues
This commit is contained in:
parent
2d5db406c8
commit
e432f3fed2
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue