From 6f75d1149269d9d69c270c219bfcd4a4f528daae Mon Sep 17 00:00:00 2001 From: Ilia Miheev Date: Wed, 25 Feb 2026 22:18:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5=20=D1=8D=D0=BA=D0=B7?= =?UTF-8?q?=D0=B5=D0=BC=D0=BF=D0=BB=D1=8F=D1=80=D0=B0=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B2=D1=81=D1=8E=20=D1=88=D0=B8=D1=80=D0=B8=D0=BD=D1=83=20?= =?UTF-8?q?=D0=B8=20=D0=B2=D1=8B=D1=81=D0=BE=D1=82=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index bd7c393..8668dab 100644 --- a/src/main.js +++ b/src/main.js @@ -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'), },