mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-15 19:22:13 -06:00
To avoid the pop up and save the error in the log
This commit is contained in:
parent
5e13a29106
commit
64c26c7e5d
@ -63,7 +63,17 @@ export default class NotificationHandler {
|
|||||||
y: number = 0,
|
y: number = 0,
|
||||||
) {
|
) {
|
||||||
if (window && !window.isDestroyed()) {
|
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',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user