fix applies-to expander's collapse-on-click

This commit is contained in:
tophf 2020-11-20 18:08:04 +03:00
parent 70e3ba15b7
commit 17a0bd69c0

View File

@ -664,7 +664,9 @@ function switchUI({styleOnly} = {}) {
newUI.renderClass(); newUI.renderClass();
installed.classList.toggle('has-favicons', newUI.enabled && newUI.favicons); installed.classList.toggle('has-favicons', newUI.enabled && newUI.favicons);
installed.classList.toggle('favicons-grayed', newUI.enabled && newUI.faviconsGray); installed.classList.toggle('favicons-grayed', newUI.enabled && newUI.faviconsGray);
if (changed.targets) installed.style.setProperty('--num-targets', newUI.targets); if (installed.style.getPropertyValue('--num-targets') !== `${newUI.targets}`) {
installed.style.setProperty('--num-targets', newUI.targets);
}
if (styleOnly) { if (styleOnly) {
return; return;