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:
committed by
GitHub
parent
3236fb8819
commit
f353a4c827
@@ -170,7 +170,7 @@ function supportsFullscreen() {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user