launch to primary monitor
This commit is contained in:
parent
74b02bfff6
commit
84ca99a871
@ -28,9 +28,18 @@ electronMain.initialize();
|
|||||||
await LOG.ensureSourceMaps();
|
await LOG.ensureSourceMaps();
|
||||||
LOG.silly('base log source maps loaded');
|
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({
|
const window = new electron.BrowserWindow({
|
||||||
width: 1580,//1080,
|
width: width,
|
||||||
height: 720,
|
height: height,
|
||||||
|
x: x,
|
||||||
|
y: y,
|
||||||
minWidth: 940,
|
minWidth: 940,
|
||||||
minHeight: 500,
|
minHeight: 500,
|
||||||
frame: false,
|
frame: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user