posthog-js 1.28.0 → 1.29.2

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.28.0";
884
+ var version = "1.29.2";
885
885
 
886
886
  // e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
887
887
 
@@ -4126,7 +4126,9 @@ var Toolbar = /*#__PURE__*/function () {
4126
4126
  delete editorParams.userIntent;
4127
4127
  }
4128
4128
 
4129
- editorParams['apiURL'] = this.instance.get_config('api_host');
4129
+ if (!editorParams.apiURL) {
4130
+ editorParams.apiURL = this.instance.get_config('api_host');
4131
+ }
4130
4132
 
4131
4133
  if (editorParams['token'] && this.instance.get_config('token') === editorParams['token']) {
4132
4134
  this._loadEditor(editorParams);