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(); return decide();
function processUsercss(style) { function processUsercss(style) {
return findDupUsercss(style).then(dup => { return findDupUsercss(style)
if (!dup) { .then(dup => {
return; if (!dup) {
} return;
if (!id) { }
id = dup.id; if (!id) {
} id = dup.id;
if (reason === 'config') { }
return; if (reason === 'config') {
} return;
// preserve style.vars during update }
usercss.assignVars(style, dup); // preserve style.vars during update
}) usercss.assignVars(style, dup);
.then(() => usercss.buildCode(style)); })
.then(() => usercss.buildCode(style));
} }
function decide() { function decide() {