diff --git a/src/renderer/notification-handler.ts b/src/renderer/notification-handler.ts index d08f5f9b..913b591d 100644 --- a/src/renderer/notification-handler.ts +++ b/src/renderer/notification-handler.ts @@ -63,7 +63,17 @@ export default class NotificationHandler { y: number = 0, ) { if (window && !window.isDestroyed()) { - window.setPosition(parseInt(String(x), 10), parseInt(String(y), 10)); + try { + window.setPosition(parseInt(String(x), 10), parseInt(String(y), 10)); + } catch (err) { + console.warn( + 'Failed to set window position. x: ' + + x + + ' y: ' + + y + + '. Contact the developers for more details', + ); + } } }