Check we are in full screen

This commit is contained in:
Johan Kwarnmark 2021-05-03 11:47:57 +02:00
parent 6eac0b9497
commit e6c05f9147

View File

@ -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();
}
});