1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

[update] adjust code style

This commit is contained in:
Kazumi Harada
2019-06-09 13:49:30 +09:00
committed by Junyoung Choi
parent 1ce72b91ca
commit b8de51be57

View File

@@ -155,12 +155,12 @@ function get () {
function set (updates) {
const currentConfig = get()
let arrangedUpdates = updates
if (updates.preview !== undefined && updates.preview.customCSS === "") {
const arrangedUpdates = updates
if (updates.preview !== undefined && updates.preview.customCSS === '') {
arrangedUpdates.preview.customCSS = DEFAULT_CONFIG.preview.customCSS
}
const newConfig = Object.assign({}, DEFAULT_CONFIG, currentConfig, arrangedUpdates);
const newConfig = Object.assign({}, DEFAULT_CONFIG, currentConfig, arrangedUpdates)
if (!validate(newConfig)) throw new Error('INVALID CONFIG')
_save(newConfig)