Ignore some TypeScript "errors" about fullscreen properties
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
5391167eab
commit
ce05a69743
@ -525,8 +525,11 @@ const requestFullscreen = function (e) {
|
||||
const fullscreenEnabled = function () {
|
||||
// eslint-disable-next-line compat/compat
|
||||
return document.fullscreenEnabled ||
|
||||
// @ts-ignore: Exists on Webkit
|
||||
document.webkitFullscreenEnabled ||
|
||||
// @ts-ignore: Exists on Firefox
|
||||
document.mozFullScreenEnabled ||
|
||||
// @ts-ignore: Exists on Microsoft
|
||||
document.msFullscreenEnabled;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user