From 737f8bff66ca81f2da052ff16c65f7a5506c8948 Mon Sep 17 00:00:00 2001 From: thecookingsenpai Date: Thu, 1 Feb 2024 20:24:54 +0100 Subject: [PATCH] sleeker launch approach --- main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 5bc3c95..7114069 100644 --- a/main.js +++ b/main.js @@ -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") }