restore styleSectionsEqual in updater for non-usercss
...which was broken in bc8d8b2
This commit is contained in:
parent
79cd6da824
commit
1bd366beb9
|
@ -10,6 +10,7 @@
|
||||||
semverCompare
|
semverCompare
|
||||||
styleJSONseemsValid
|
styleJSONseemsValid
|
||||||
styleManager
|
styleManager
|
||||||
|
styleSectionsEqual
|
||||||
tryJSONparse
|
tryJSONparse
|
||||||
usercss
|
usercss
|
||||||
*/
|
*/
|
||||||
|
@ -221,7 +222,7 @@
|
||||||
delete json.enabled;
|
delete json.enabled;
|
||||||
|
|
||||||
const newStyle = Object.assign({}, style, json);
|
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.
|
// update digest even if save === false as there might be just a space added etc.
|
||||||
return styleManager.installStyle(newStyle)
|
return styleManager.installStyle(newStyle)
|
||||||
.then(saved => {
|
.then(saved => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user