pl-fe: remove mozRequestFullScreen
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
627a810503
commit
e2ab865230
1 changed files with 1 additions and 9 deletions
|
@ -4,9 +4,7 @@
|
||||||
const isFullscreen = (): boolean => Boolean(
|
const isFullscreen = (): boolean => Boolean(
|
||||||
document.fullscreenElement ||
|
document.fullscreenElement ||
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
document.webkitFullscreenElement ||
|
document.webkitFullscreenElement,
|
||||||
// @ts-ignore
|
|
||||||
document.mozFullScreenElement,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const exitFullscreen = (): void => {
|
const exitFullscreen = (): void => {
|
||||||
|
@ -15,9 +13,6 @@ const exitFullscreen = (): void => {
|
||||||
} else if ('webkitExitFullscreen' in document) {
|
} else if ('webkitExitFullscreen' in document) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
document.webkitExitFullscreen();
|
document.webkitExitFullscreen();
|
||||||
} else if ('mozCancelFullScreen' in document) {
|
|
||||||
// @ts-ignore
|
|
||||||
document.mozCancelFullScreen();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,9 +22,6 @@ const requestFullscreen = (el: Element): void => {
|
||||||
} else if ('webkitRequestFullscreen' in el) {
|
} else if ('webkitRequestFullscreen' in el) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
el.webkitRequestFullscreen();
|
el.webkitRequestFullscreen();
|
||||||
} else if ('mozRequestFullScreen' in el) {
|
|
||||||
// @ts-ignore
|
|
||||||
el.mozRequestFullScreen();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue