@blotoutio/edgetag-sdk-browser 1.7.0 → 1.8.0

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/index.js +8 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -922,7 +922,7 @@
922
922
  referrer: getReferrer(destination),
923
923
  search: getSearch(destination),
924
924
  locale: getLocale(),
925
- sdkVersion: "1.7.0" ,
925
+ sdkVersion: "1.8.0" ,
926
926
  ...(payload || {}),
927
927
  };
928
928
  let storage = {};
@@ -1612,7 +1612,13 @@
1612
1612
  if (fallbackId) {
1613
1613
  url.searchParams.set('fallbackUserId', fallbackId);
1614
1614
  }
1615
- const dbIndex = getDataPerKey(preferences.edgeURL, 'local', tagStorage, storageIdKey);
1615
+ let dbIndex;
1616
+ if (preferences.storageId != null) {
1617
+ dbIndex = preferences.storageId;
1618
+ }
1619
+ else {
1620
+ dbIndex = getDataPerKey(preferences.edgeURL, 'local', tagStorage, storageIdKey);
1621
+ }
1616
1622
  if (dbIndex != null && !isNaN(dbIndex)) {
1617
1623
  url.searchParams.set('storageId', dbIndex.toString());
1618
1624
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-browser",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",