UNPKG

@bitrix24/b24jssdk

Version:

Bitrix24 REST API JavaScript SDK

30 lines (28 loc) 962 B
/** * @package @bitrix24/b24jssdk * @version 1.0.3 * @copyright (c) 2026 Bitrix24 * @license MIT * @see https://github.com/bitrix24/b24jssdk * @see https://bitrix24.github.io/b24jssdk/ */ 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"); export { Environment, getEnvironment }; //# sourceMappingURL=environment.mjs.map