File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,16 @@ const createWindow = () => {
39
39
show : false ,
40
40
autoHideMenuBar : true ,
41
41
titleBarStyle : 'hiddenInset' ,
42
- width : store . get ( 'window.width' , dimensions . size . width < 1440 ? dimensions . size . width : 1440 ) ,
43
- height : store . get ( 'window.height' , dimensions . size . height < 900 ? dimensions . size . height : 900 ) ,
42
+ // @ts -ignore
43
+ width : store . get ( 'window.width' , dimensions . width < 1440 ? dimensions . width : 1440 ) ,
44
+ // @ts -ignore
45
+ height : store . get ( 'window.height' , dimensions . height < 900 ? dimensions . height : 900 ) ,
44
46
webPreferences : {
45
47
preload : join ( __dirname , 'preload.js' ) ,
46
48
webSecurity : false ,
47
49
allowRunningInsecureContent : false ,
50
+ // @ts -ignore
51
+ enableRemoteModule : process . env . NODE_ENV === 'test' , // https://github.com/electron-userland/spectron/pull/738#issuecomment-754810364
48
52
nodeIntegration : process . env . NODE_ENV === 'test'
49
53
}
50
54
} )
You can’t perform that action at this time.
0 commit comments