sleeker launch approach

This commit is contained in:
thecookingsenpai 2024-02-01 20:24:54 +01:00
parent bff9181518
commit 737f8bff66

View File

@ -4,16 +4,20 @@ const path = require('node:path')
let factor = null
function createWindow () {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 1280 / factor,
height: 1024 / factor,
webPreferences: {
zoomFactor: 1.0 / factor
zoomFactor: 1.0 / factor,
nodeIntegration: true,
}
})
// Testing some env variables
mainWindow.setMenuBarVisibility(false)
mainWindow.loadURL("http://localhost:1970")
}