mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix return type in supports fullscreen (#4903)
* refactor: supportsFullScreen to return the same type * Fix parentheses Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --------- Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com> Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
3236fb8819
commit
f353a4c827
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ function supportsFullscreen() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const element = document.documentElement;
|
const element = document.documentElement;
|
||||||
return (element.requestFullscreen || element.mozRequestFullScreen || element.webkitRequestFullscreen || element.msRequestFullscreen) || document.createElement('video').webkitEnterFullscreen;
|
return !!(element.requestFullscreen || element.mozRequestFullScreen || element.webkitRequestFullscreen || element.msRequestFullscreen || document.createElement('video').webkitEnterFullscreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultLayout() {
|
function getDefaultLayout() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue