frontend-rw #1

Merged
marcin merged 347 commits from frontend-rw into develop 2024-12-05 15:32:18 -08:00
Showing only changes of commit e2ab865230 - Show all commits

View file

@ -4,9 +4,7 @@
const isFullscreen = (): boolean => Boolean(
document.fullscreenElement ||
// @ts-ignore
document.webkitFullscreenElement ||
// @ts-ignore
document.mozFullScreenElement,
document.webkitFullscreenElement,
);
const exitFullscreen = (): void => {
@ -15,9 +13,6 @@ const exitFullscreen = (): void => {
} else if ('webkitExitFullscreen' in document) {
// @ts-ignore
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) {
// @ts-ignore
el.webkitRequestFullscreen();
} else if ('mozRequestFullScreen' in el) {
// @ts-ignore
el.mozRequestFullScreen();
}
};