mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
Check we are in full screen
This commit is contained in:
parent
6eac0b9497
commit
e6c05f9147
@ -204,7 +204,7 @@ ipcRenderer.on('initialize-memory-refresh', () => {
|
||||
});
|
||||
|
||||
ipcRenderer.on('exit-html-fullscreen', async () => {
|
||||
if (document && typeof document.exitFullscreen === 'function') {
|
||||
if (document && document.fullscreenElement) {
|
||||
await document.exitFullscreen();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user