mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-26 02:40:24 -06:00
SDA-4140 Focus SDA after browser login (#1825)
* SDA-4140 Focus SDA after browser login * SDA-4140 Focus SDA after browser login
This commit is contained in:
parent
b730580b59
commit
6c90c62f80
@ -160,6 +160,15 @@ class ProtocolHandler {
|
||||
);
|
||||
windowHandler.setMainWindowOrigin(redirectURL);
|
||||
mainWebContents?.loadURL(redirectURL);
|
||||
const mainWindow = windowHandler.getMainWindow();
|
||||
if (mainWindow?.isMinimized()) {
|
||||
mainWindow.restore();
|
||||
} else if (mainWindow?.isFullScreen()) {
|
||||
mainWindow.once('leave-full-screen', () => {
|
||||
mainWindow.setFullScreen(true);
|
||||
});
|
||||
mainWindow.setFullScreen(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user