From 17a0bd69c0f24c7a93d7dd0e95b565fd79855505 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 20 Nov 2020 18:08:04 +0300 Subject: [PATCH] fix applies-to expander's collapse-on-click --- manage/manage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;