Fix default websites not checked in options (part 2)
Now both for new install and update of options.master
parent
d9414b063c
commit
c95becae34
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue