mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
fix: exitFullscreen
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
parent
242a4a8110
commit
f8ab1a7dbc
1 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,9 @@ const useFullscreen = () => {
|
|||
if (shell.active) {
|
||||
shell.send('win-set-visibility', { fullscreen: false });
|
||||
} else {
|
||||
document.exitFullscreen();
|
||||
if (document.fullscreenElement === document.documentElement) {
|
||||
document.exitFullscreen();
|
||||
}
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue