From c42eb41fb313c1ab171dbed2379a485543940ac1 Mon Sep 17 00:00:00 2001 From: roottool Date: Thu, 9 May 2019 05:29:43 +0900 Subject: [PATCH] Fix: Fixed that default rule was shifted by indent --- browser/main/lib/ConfigManager.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/browser/main/lib/ConfigManager.js b/browser/main/lib/ConfigManager.js index be6422b4..54fce3e9 100644 --- a/browser/main/lib/ConfigManager.js +++ b/browser/main/lib/ConfigManager.js @@ -10,6 +10,9 @@ const { ipcRenderer } = electron const consts = require('browser/lib/consts') let isInitialized = false +const DEFAULT_MARKDOWN_LINT_CONFIG = `{ + "default": true +}` export const DEFAULT_CONFIG = { zoom: 1, @@ -60,9 +63,7 @@ export const DEFAULT_CONFIG = { frontMatterTitleField: 'title', spellcheck: false, enableSmartPaste: false, - customMarkdownLintConfig: `{ - "default": true - }` + customMarkdownLintConfig: DEFAULT_MARKDOWN_LINT_CONFIG }, preview: { fontSize: '14', @@ -138,7 +139,7 @@ function get () { const theme = consts.THEMES.find(theme => theme.name === config.editor.theme) if (theme) { - editorTheme.setAttribute('href', `../${theme.path}`) + editorTheme.setAttribute('href', `${theme.path}`) } else { config.editor.theme = 'default' } @@ -180,7 +181,7 @@ function set (updates) { const newTheme = consts.THEMES.find(theme => theme.name === newConfig.editor.theme) if (newTheme) { - editorTheme.setAttribute('href', `../${newTheme.path}`) + editorTheme.setAttribute('href', `${newTheme.path}`) } ipcRenderer.send('config-renew', {