diff --git a/browser/main/lib/ConfigManager.js b/browser/main/lib/ConfigManager.js index a1868047..feaf92a6 100644 --- a/browser/main/lib/ConfigManager.js +++ b/browser/main/lib/ConfigManager.js @@ -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)