mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -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:
committed by
GitHub
parent
f64dcdd149
commit
4b6531a7ee
@@ -162,6 +162,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user