Сделал открытие экземпляра приложение на всю ширину и высоту

This commit is contained in:
Ilia Miheev
2026-02-25 22:18:58 +03:00
parent 2d62624036
commit 6f75d11492
+5 -2
View File
@@ -8,10 +8,13 @@ if (started) {
}
const createWindow = () => {
const { screen } = require('electron');
const primaryDisplay = screen.getPrimaryDisplay();
const { width, height } = primaryDisplay.workAreaSize;
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
width: width,
height: height,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
},