@saasquatch/component-environment 1.0.4-0 → 1.0.4-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -105,7 +105,7 @@ function getEnvironmentSDK() {
105
105
  adminSDK: window["SquatchAdmin"]
106
106
  };
107
107
  }
108
- if (((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"]) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
108
+ if ((window["widgetIdent"] || ((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"])) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
109
109
  return {
110
110
  type: "SquatchJS2",
111
111
  api: (_c = window.frameElement) == null ? void 0 : _c["squatchJsApi"],
package/dist/index.mjs CHANGED
@@ -56,7 +56,7 @@ function getEnvironmentSDK() {
56
56
  adminSDK: window["SquatchAdmin"]
57
57
  };
58
58
  }
59
- if (((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"]) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
59
+ if ((window["widgetIdent"] || ((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"])) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
60
60
  return {
61
61
  type: "SquatchJS2",
62
62
  api: (_c = window.frameElement) == null ? void 0 : _c["squatchJsApi"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasquatch/component-environment",
3
- "version": "1.0.4-0",
3
+ "version": "1.0.4-1",
4
4
  "description": "Environment and contexts for SaaSquatch components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",