modify inline code

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
San 2022-05-20 13:26:15 -07:00 committed by GitHub
parent 57d0002aa3
commit 4794886399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,12 @@ import template from './libraryoptionseditor.template.html';
let html = '';
const elem = page.querySelector('.metadataReaders');
if (plugins.length < 1) return (elem.innerHTML = '', elem.classList.add('hide'), !1);
if (plugins.length < 1) {
elem.innerHTML = '';
elem.classList.add('hide')
return false;
}
html += `<h3 class="checkboxListLabel">${globalize.translate('LabelMetadataReaders')}</h3>`;
html += '<div class="checkboxList paperList checkboxList-paperList">';
for (let i = 0; i < plugins.length; i++) {