File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,10 @@ const CODEMIRROR_THEME_PATH = 'node_modules/codemirror/theme'
7
7
const CODEMIRROR_EXTRA_THEME_PATH = 'extra_scripts/codemirror/theme'
8
8
9
9
const isProduction = process . env . NODE_ENV === 'production'
10
- const exePath = path . dirname ( app . getPath ( 'exe' ) )
11
- const appPath = path . join ( exePath , 'resources' , 'app' )
12
10
13
11
const paths = [
14
- isProduction ? path . join ( appPath , CODEMIRROR_THEME_PATH ) : path . resolve ( CODEMIRROR_THEME_PATH ) ,
15
- isProduction ? path . join ( appPath , CODEMIRROR_EXTRA_THEME_PATH ) : path . resolve ( CODEMIRROR_EXTRA_THEME_PATH )
12
+ isProduction ? path . join ( app . getAppPath ( ) , CODEMIRROR_THEME_PATH ) : path . resolve ( CODEMIRROR_THEME_PATH ) ,
13
+ isProduction ? path . join ( app . getAppPath ( ) , CODEMIRROR_EXTRA_THEME_PATH ) : path . resolve ( CODEMIRROR_EXTRA_THEME_PATH )
16
14
]
17
15
18
16
const themes = paths
You can’t perform that action at this time.
0 commit comments