Skip to content

Commit c0080e0

Browse files
committed
updating by following electron docs
1 parent 87d8d06 commit c0080e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/webui/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,12 @@ const createWindow = () => {
3939
show: false,
4040
autoHideMenuBar: true,
4141
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),
4644
webPreferences: {
4745
preload: join(__dirname, 'preload.js'),
4846
webSecurity: false,
4947
allowRunningInsecureContent: false,
50-
// @ts-ignore
51-
enableRemoteModule: process.env.NODE_ENV === 'test', // https://github.com/electron-userland/spectron/pull/738#issuecomment-754810364
5248
nodeIntegration: process.env.NODE_ENV === 'test'
5349
}
5450
})

0 commit comments

Comments
 (0)