mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Remove broken method of registering routes for plugins
This commit is contained in:
parent
0f3c8e29ca
commit
a85ef16e99
@ -29,22 +29,9 @@ import confirm from '../components/confirm/confirm';
|
||||
});
|
||||
}
|
||||
|
||||
#definePluginRoute(route, plugin) {
|
||||
route.contentPath = this.mapPath(plugin, route.path);
|
||||
route.path = this.#mapRoute(plugin, route);
|
||||
|
||||
Emby.App.defineRoute(route, plugin.id);
|
||||
}
|
||||
|
||||
async #registerPlugin(plugin) {
|
||||
this.#register(plugin);
|
||||
|
||||
if (plugin.getRoutes) {
|
||||
plugin.getRoutes().forEach((route) => {
|
||||
this.#definePluginRoute(route, plugin);
|
||||
});
|
||||
}
|
||||
|
||||
if (plugin.type === 'skin') {
|
||||
// translations won't be loaded for skins until needed
|
||||
return plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user