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