diff --git a/browser/main/lib/ConfigManager.js b/browser/main/lib/ConfigManager.js index 324403aa..78c91aa1 100644 --- a/browser/main/lib/ConfigManager.js +++ b/browser/main/lib/ConfigManager.js @@ -140,7 +140,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' } @@ -182,7 +182,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', {