Apply suggestions from code review

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Cody Robibero
2024-09-09 11:53:52 -06:00
committed by GitHub
parent 96e49dadd4
commit 6c39c5d9b8
@@ -220,12 +220,11 @@ function renderLyricFetchers(page, availableOptions, libraryOptions) {
const elem = page.querySelector('.lyricFetchers');
let plugins = availableOptions.LyricFetchers;
plugins = getOrderedPlugins(plugins, libraryOptions.LyricFetcherOrder || []);
plugins = getOrderedPlugins(plugins, libraryOptions.LyricFetcherOrder);
if (!plugins.length) return html;
html += `<h3 class="checkboxListLabel">${globalize.translate('LabelLyricDownloaders')}</h3>`;
html += '<div class="checkboxList paperList checkboxList-paperList">';
console.log(libraryOptions);
for (let i = 0; i < plugins.length; i++) {
const plugin = plugins[i];
html += `<div class="listItem lyricFetcherItem sortableOption" data-pluginname="${escapeHtml(plugin.Name)}">`;