Конфиг Electron (maximize)

This commit is contained in:
Ilia Miheev
2026-06-02 23:50:06 +03:00
parent 25a0014d21
commit eb4bf099f3
+2 -1
View File
@@ -20,7 +20,8 @@ const createWindow = () => {
preload: path.join(__dirname, 'preload.js'), preload: path.join(__dirname, 'preload.js'),
}, },
}); });
mainWindow.menuBarVisible = false; mainWindow.setMenuBarVisibility(false);
mainWindow.maximize();
// and load the index.html of the app. // and load the index.html of the app.
if (MAIN_WINDOW_VITE_DEV_SERVER_URL) { if (MAIN_WINDOW_VITE_DEV_SERVER_URL) {