mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
[update] adjust code style
This commit is contained in:
committed by
Junyoung Choi
parent
1ce72b91ca
commit
b8de51be57
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user