decreased total screen size

This commit is contained in:
DJ2LS 2021-09-05 09:56:13 +02:00 committed by GitHub
parent e67a10903b
commit f22d1e89ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,13 +48,14 @@ var daemonProcess = null;
function createWindow() { function createWindow() {
win = new BrowserWindow({ win = new BrowserWindow({
width: 1220, width: 1220,
height: 920, height: 830,
autoHideMenuBar: true, autoHideMenuBar: true,
icon: __dirname + '/src/app-icon.png', icon: __dirname + '/src/app-icon.png',
webPreferences: { webPreferences: {
//preload: path.join(__dirname, 'preload-main.js'), //preload: path.join(__dirname, 'preload-main.js'),
preload: require.resolve('./preload-main.js'), preload: require.resolve('./preload-main.js'),
nodeIntegration: true, nodeIntegration: true,
nativeWindowOpen: true,
contextIsolation: false, contextIsolation: false,
enableRemoteModule: false, //https://stackoverflow.com/questions/53390798/opening-new-window-electron/53393655 https://github.com/electron/remote enableRemoteModule: false, //https://stackoverflow.com/questions/53390798/opening-new-window-electron/53393655 https://github.com/electron/remote
} }