posthog-js 1.32.0 → 1.32.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/es.js CHANGED
@@ -881,7 +881,7 @@ var LZString = {
881
881
  }
882
882
  };
883
883
 
884
- var version = "1.32.0";
884
+ var version = "1.32.1";
885
885
 
886
886
  // e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
887
887
 
@@ -4056,7 +4056,7 @@ var Decide = /*#__PURE__*/function () {
4056
4056
  this.instance['compression'] = {};
4057
4057
  }
4058
4058
 
4059
- if (response['inject']) {
4059
+ if (response['inject'] && this.instance.get_config('opt_in_web_app_injection')) {
4060
4060
  var _iterator2 = _createForOfIteratorHelper(response['inject']),
4061
4061
  _step2;
4062
4062
 
@@ -6000,6 +6000,7 @@ var defaultConfig = function defaultConfig() {
6000
6000
  opt_out_persistence_by_default: false,
6001
6001
  opt_out_capturing_persistence_type: 'localStorage',
6002
6002
  opt_out_capturing_cookie_prefix: null,
6003
+ opt_in_web_app_injection: false,
6003
6004
  property_blacklist: [],
6004
6005
  respect_dnt: false,
6005
6006
  sanitize_properties: null,