Custom sites - hide first (useless) checkbox before label

This commit is contained in:
magnolia1234 2019-12-21 14:58:32 +01:00 committed by GitHub
parent e1e5461c63
commit e2edc014e8

View File

@ -170,8 +170,9 @@ function renderOptions_default() {
inputEl.dataset.key = key;
inputEl.dataset.value = value;
inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites);
labelEl.appendChild(inputEl);
if (value !=='') {
labelEl.appendChild(inputEl);
}
labelEl.appendChild(document.createTextNode(' '+key));
sitesEl.appendChild(labelEl);
}