1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Fix theme paths

This commit is contained in:
Junyoung Choi
2019-07-26 13:04:53 +09:00
committed by Junyoung Choi
parent ed427130a9
commit 484b003b34
4 changed files with 13 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ import { getLanguages } from 'browser/lib/Languages'
import normalizeEditorFontFamily from 'browser/lib/normalizeEditorFontFamily'
const OSX = global.process.platform === 'darwin'
const win = global.process.platform === 'win32'
const WIN = global.process.platform === 'win32'
const electron = require('electron')
const ipc = electron.ipcRenderer
@@ -137,7 +137,7 @@ class UiTab extends React.Component {
const theme = consts.THEMES.find(theme => theme.name === newCodemirrorTheme)
if (theme) {
checkHighLight.setAttribute('href', win ? theme.path : `../${theme.path}`)
checkHighLight.setAttribute('href', theme.path)
}
}