diff --git a/client/main.ts b/client/main.ts index ceed539..8f25f0f 100644 --- a/client/main.ts +++ b/client/main.ts @@ -28,9 +28,18 @@ electronMain.initialize(); await LOG.ensureSourceMaps(); LOG.silly('base log source maps loaded'); + const display = electron.screen.getPrimaryDisplay(); + + let width = 1580;//1080 + let height = 720; + let x = display.workArea.x + display.workAreaSize.width / 2 - width / 2; + let y = display.workArea.y + display.workAreaSize.height / 2 - height / 2; + const window = new electron.BrowserWindow({ - width: 1580,//1080, - height: 720, + width: width, + height: height, + x: x, + y: y, minWidth: 940, minHeight: 500, frame: false,