From 5751a9bcb759e9f6e63838edb4dfbbf4cb2c251a Mon Sep 17 00:00:00 2001 From: Herwig Hochleitner Date: Sat, 28 Oct 2023 01:00:39 +0200 Subject: [PATCH] fix startup errors on electron 26 --- src/main/windows/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/windows/main.js b/src/main/windows/main.js index dc31ba5d..c1edaf99 100644 --- a/src/main/windows/main.js +++ b/src/main/windows/main.js @@ -91,11 +91,11 @@ function init (state, options) { }) win.on('move', debounce(e => { - send('windowBoundsChanged', e.sender.getBounds()) + send('windowBoundsChanged', main.win.getBounds()) }, 1000)) win.on('resize', debounce(e => { - send('windowBoundsChanged', e.sender.getBounds()) + send('windowBoundsChanged', main.win.getBounds()) }, 1000)) win.on('close', e => {