restore styleSectionsEqual in updater for non-usercss

...which was broken in bc8d8b2
This commit is contained in:
tophf 2020-11-19 18:13:54 +03:00
parent 79cd6da824
commit 1bd366beb9

View File

@ -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 => {