'use strict';

/*!
 * @techmely/utils
 * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
 * MIT Licensed
 */


// src/isServer.ts
function isServer() {
  return typeof window === "undefined";
}

// src/fullScreen.ts
function requestFullscreen(mode = true, el = "body") {
  if (isServer())
    return;
  if (mode)
    document.querySelector(el)?.requestFullscreen();
  else
    document.exitFullscreen();
}

exports.requestFullscreen = requestFullscreen;
