From f278340a0866c7f964cc2aa7e793a21cc017e6ac Mon Sep 17 00:00:00 2001 From: Thomas Mauran Date: Wed, 20 Nov 2024 09:28:02 +0100 Subject: [PATCH] chore: remove browser.js file generated from build --- src/utils/browser.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/utils/browser.js diff --git a/src/utils/browser.js b/src/utils/browser.js deleted file mode 100644 index 3d81f11b..00000000 --- a/src/utils/browser.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isBrowser = exports.getBrowserWindow = void 0; -function getBrowserWindow() { - let windowObject; - try { - windowObject || (windowObject = globalThis.window); - if (windowObject) { - return windowObject; - } - } - catch { - // Check next variable - } - try { - windowObject || (windowObject = global.window); - if (windowObject) { - return windowObject; - } - } - catch { - // Check next variable - } - try { - windowObject || (windowObject = window); - if (windowObject) { - return windowObject; - } - } - catch { - // return undefined - } -} -exports.getBrowserWindow = getBrowserWindow; -function isBrowser() { - const window = getBrowserWindow(); - return window !== undefined && window !== null && typeof window === "object"; -} -exports.isBrowser = isBrowser; -//# sourceMappingURL=browser.js.map \ No newline at end of file