diff --git a/manage/manage.js b/manage/manage.js index ee859aba..d21ef8e1 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -664,7 +664,9 @@ function switchUI({styleOnly} = {}) { newUI.renderClass(); installed.classList.toggle('has-favicons', newUI.enabled && newUI.favicons); 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) { return;