@saasquatch/squatch-js 2.6.1-0 → 2.6.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/squatch.js CHANGED
@@ -808,7 +808,6 @@ class EmbedWidget extends Widget {
808
808
  } = entry.contentRect; // @ts-ignore -- number will be cast to string by browsers
809
809
 
810
810
  frame.height = height;
811
- console.log("RESIZE");
812
811
  }
813
812
  });
814
813
  var container = await this._findInnerContainer(frame);
@@ -2084,7 +2083,7 @@ function help() {
2084
2083
  console.log("Having trouble using Squatch.js? Go to https://docs.referralsaasquatch.com/developer/ for tutorials, references and error codes.");
2085
2084
  }
2086
2085
 
2087
- // @ts-check
2086
+ var _window$squatch;
2088
2087
  // debug.disable("squatch-js*");
2089
2088
 
2090
2089
  /** @hidden */
@@ -2272,8 +2271,10 @@ function pushCookie() {
2272
2271
 
2273
2272
  if (typeof document !== "undefined" && !window.SaaSquatchDoNotAutoDrop) {
2274
2273
  pushCookie();
2275
- }
2274
+ } // Show message if squatchjs has already been loaded on the page
2275
+
2276
2276
 
2277
+ if ((_window$squatch = window["squatch"]) != null && _window$squatch.init) _log("Squatchjs is being loaded more than once. This may lead to multiple load events being sent, duplicated widgets, and inaccurate analytics.");
2277
2278
  if (typeof document !== "undefined") asyncLoad();
2278
2279
 
2279
2280
  exports.DeclarativeEmbedWidget = DeclarativeEmbedWidget;