Make exports consistent

This commit is contained in:
1ilit
2024-03-15 20:55:43 +02:00
parent 3ec93f42c6
commit 725f01d8da
8 changed files with 31 additions and 64 deletions

View File

@@ -1,4 +1,4 @@
function enterFullscreen() {
export function enterFullscreen() {
const element = document.documentElement;
if (element.requestFullscreen) {
element.requestFullscreen();
@@ -11,7 +11,7 @@ function enterFullscreen() {
}
}
function exitFullscreen() {
export function exitFullscreen() {
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.mozCancelFullScreen) {
@@ -22,5 +22,3 @@ function exitFullscreen() {
document.msExitFullscreen();
}
}
export { enterFullscreen, exitFullscreen };