Fix: indent of promises

This commit is contained in:
eight 2017-11-09 09:05:26 +08:00
parent 5dd322e512
commit f070d7ff8e

View File

@ -363,9 +363,8 @@ Object.assign(handleEvent, {
reason: 'update',
});
if (entry.updatedCode.usercssData) {
onBackgroundReady().then(() =>
BG.usercssHelper.save(request)
);
onBackgroundReady()
.then(() => BG.usercssHelper.save(request));
} else {
// update everything but name
request.name = null;