UNPKG

@bitrix24/b24jssdk

Version:

Bitrix24 REST API JavaScript SDK

33 lines (30 loc) 1.01 kB
/** * @package @bitrix24/b24jssdk * @version 2.0.0 * @copyright (c) 2026 Bitrix24 * @license MIT * @see https://github.com/bitrix24/b24jssdk * @see https://bitrix24.github.io/b24jssdk/ */ 'use strict'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var Environment = /* @__PURE__ */ ((Environment2) => { Environment2["UNKNOWN"] = "unknown"; Environment2["BROWSE"] = "browser"; Environment2["NODE"] = "node"; return Environment2; })(Environment || {}); function getEnvironment() { if (typeof window !== "undefined" && typeof window.document !== "undefined") { return "browser" /* BROWSE */; } if (typeof process !== "undefined" && process.versions && process.versions.node) { return "node" /* NODE */; } return "unknown" /* UNKNOWN */; } __name(getEnvironment, "getEnvironment"); exports.Environment = Environment; exports.getEnvironment = getEnvironment; //# sourceMappingURL=environment.cjs.map