Fix default websites not checked in options (part 2)

Now both for new install and update of options.
master
magnolia1234 2019-11-05 18:13:46 +01:00 committed by GitHub
parent d9414b063c
commit c95becae34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));