posthog-js 1.32.2 → 1.32.4

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/es.js CHANGED
@@ -881,7 +881,7 @@ var LZString = {
881
881
  }
882
882
  };
883
883
 
884
- var version = "1.32.2";
884
+ var version = "1.32.4";
885
885
 
886
886
  // e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
887
887
 
@@ -4056,11 +4056,11 @@ var Decide = /*#__PURE__*/function () {
4056
4056
  this.instance['compression'] = {};
4057
4057
  }
4058
4058
 
4059
- if (response['inject']) {
4060
- if (this.instance.get_config('opt_in_web_app_injection')) {
4059
+ if (response['siteApps']) {
4060
+ if (this.instance.get_config('opt_in_site_apps')) {
4061
4061
  var apiHost = this.instance.get_config('api_host');
4062
4062
 
4063
- var _iterator2 = _createForOfIteratorHelper(response['inject']),
4063
+ var _iterator2 = _createForOfIteratorHelper(response['siteApps']),
4064
4064
  _step2;
4065
4065
 
4066
4066
  try {
@@ -4075,7 +4075,7 @@ var Decide = /*#__PURE__*/function () {
4075
4075
  console.error("Error while initializing PostHog app with config id ".concat(id), e);
4076
4076
  };
4077
4077
 
4078
- window["__$$ph_web_js_".concat(id)] = _this2.instance;
4078
+ window["__$$ph_site_app_".concat(id)] = _this2.instance;
4079
4079
  document.body.appendChild(script);
4080
4080
  };
4081
4081
 
@@ -4087,8 +4087,8 @@ var Decide = /*#__PURE__*/function () {
4087
4087
  } finally {
4088
4088
  _iterator2.f();
4089
4089
  }
4090
- } else if (response['inject'].length > 0) {
4091
- console.error('PostHog app injection was requested, but is disabled. Enable the "opt_in_web_app_injection" config to proceed.');
4090
+ } else if (response['siteApps'].length > 0) {
4091
+ console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
4092
4092
  }
4093
4093
  }
4094
4094
  }
@@ -6006,7 +6006,7 @@ var defaultConfig = function defaultConfig() {
6006
6006
  opt_out_persistence_by_default: false,
6007
6007
  opt_out_capturing_persistence_type: 'localStorage',
6008
6008
  opt_out_capturing_cookie_prefix: null,
6009
- opt_in_web_app_injection: false,
6009
+ opt_in_site_apps: false,
6010
6010
  property_blacklist: [],
6011
6011
  respect_dnt: false,
6012
6012
  sanitize_properties: null,