"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toggleFullscreen = void 0;
const enterFullscreen_1 = require("./enterFullscreen");
const leaveFullscreen_1 = require("./leaveFullscreen");
function toggleFullscreen() {
    const isFullscreen = !!document.fullscreenElement;
    if (isFullscreen) {
        (0, leaveFullscreen_1.leaveFullscreen)();
    }
    else {
        (0, enterFullscreen_1.enterFullscreen)();
    }
}
exports.toggleFullscreen = toggleFullscreen;
//# sourceMappingURL=toggleFullscreen.js.map