flux-analytics-sdk 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Flux.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flux-analytics-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Flux Analytics SDK for JavaScript/Web",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Flux.js CHANGED
@@ -361,7 +361,7 @@ const Flux = (function () {
361
361
  async function init(appId, firmId, config = {}) {
362
362
  _appId = appId;
363
363
  _firmId = firmId;
364
- _apiKey = config.apiKey || null;
364
+ if (config.apiKey) _apiKey = config.apiKey;
365
365
  if (config.baseUrl) _baseUrl = config.baseUrl;
366
366
  _debug = config.debug || false;
367
367