diff --git a/options.js b/options.js index 136da36..d912f21 100644 --- a/options.js +++ b/options.js @@ -132,7 +132,7 @@ function renderOptions() { inputEl.type = 'checkbox'; inputEl.dataset.key = key; inputEl.dataset.value = value; - inputEl.checked = key.replace(/\s\(.*\)/, '') in sites; + inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites); labelEl.appendChild(inputEl); labelEl.appendChild(document.createTextNode(' '+key));