mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge branch 'master' into eslint-no-sequences
This commit is contained in:
commit
a2fe92f192
80 changed files with 2166 additions and 1116 deletions
|
@ -550,7 +550,9 @@ import template from './libraryoptionseditor.template.html';
|
|||
function getOrderedPlugins(plugins, configuredOrder) {
|
||||
plugins = plugins.slice(0);
|
||||
plugins.sort((a, b) => {
|
||||
return ((a = configuredOrder.indexOf(a.Name), b = configuredOrder.indexOf(b.Name)), a < b ? -1 : a > b ? 1 : 0);
|
||||
a = configuredOrder.indexOf(a.Name);
|
||||
b = configuredOrder.indexOf(b.Name);
|
||||
return a - b;
|
||||
});
|
||||
return plugins;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue