mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Apply suggestions
This commit is contained in:
parent
59b851219f
commit
0872f3f001
2 changed files with 23 additions and 30 deletions
|
@ -34,9 +34,7 @@ function getScreensaverPlugin(isLoggedIn) {
|
|||
|
||||
const plugins = pluginManager.ofType('screensaver');
|
||||
|
||||
for (let i = 0, length = plugins.length; i < length; i++) {
|
||||
const plugin = plugins[i];
|
||||
|
||||
for (const plugin of plugins) {
|
||||
if (plugin.id === option) {
|
||||
return plugin;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue