Fix: saveStyle indent

This commit is contained in:
eight 2017-09-12 18:54:38 +08:00
parent e13a6f6f92
commit e1d221e9a9

View File

@ -469,20 +469,21 @@ function saveStyle(style) {
return decide();
function processUsercss(style) {
return findDupUsercss(style).then(dup => {
if (!dup) {
return;
}
if (!id) {
id = dup.id;
}
if (reason === 'config') {
return;
}
// preserve style.vars during update
usercss.assignVars(style, dup);
})
.then(() => usercss.buildCode(style));
return findDupUsercss(style)
.then(dup => {
if (!dup) {
return;
}
if (!id) {
id = dup.id;
}
if (reason === 'config') {
return;
}
// preserve style.vars during update
usercss.assignVars(style, dup);
})
.then(() => usercss.buildCode(style));
}
function decide() {