Skip to content

Commit

Permalink
[update] adjust code style
Browse files Browse the repository at this point in the history
  • Loading branch information
KazumiHARADA authored and Rokt33r committed Jul 8, 2019
1 parent 1ce72b9 commit b8de51b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions browser/main/lib/ConfigManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b8de51b

Please sign in to comment.