From 1bd366beb9ac6e51775be02dacfc16a624e8131b Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 19 Nov 2020 18:13:54 +0300 Subject: [PATCH] restore styleSectionsEqual in updater for non-usercss ...which was broken in bc8d8b2 --- background/update.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/background/update.js b/background/update.js index 9b877cbd..f4c248ae 100644 --- a/background/update.js +++ b/background/update.js @@ -10,6 +10,7 @@ semverCompare styleJSONseemsValid styleManager + styleSectionsEqual tryJSONparse usercss */ @@ -221,7 +222,7 @@ delete json.enabled; const newStyle = Object.assign({}, style, json); - if (json.sourceCode === style.sourceCode) { + if (!style.usercssData && styleSectionsEqual(json, style)) { // update digest even if save === false as there might be just a space added etc. return styleManager.installStyle(newStyle) .then(saved => {