forked from jchomaz/Vulture
Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
14
VApp/node_modules/mqtt/build/lib/is-browser.js
generated
vendored
Normal file
14
VApp/node_modules/mqtt/build/lib/is-browser.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isWebWorker = void 0;
|
||||
const isStandardBrowserEnv = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
||||
const isWebWorkerEnv = () => {
|
||||
var _a, _b;
|
||||
return Boolean(typeof self === 'object' &&
|
||||
((_b = (_a = self === null || self === void 0 ? void 0 : self.constructor) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.includes('WorkerGlobalScope')));
|
||||
};
|
||||
const isReactNativeEnv = () => typeof navigator !== 'undefined' && navigator.product === 'ReactNative';
|
||||
const isBrowser = isStandardBrowserEnv() || isWebWorkerEnv() || isReactNativeEnv();
|
||||
exports.isWebWorker = isWebWorkerEnv();
|
||||
exports.default = isBrowser;
|
||||
//# sourceMappingURL=is-browser.js.map
|
||||
Reference in New Issue
Block a user