@blotoutio/edgetag-sdk-browser 1.7.0 → 1.7.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/index.js +8 -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.
|
|
925
|
+
sdkVersion: "1.7.1" ,
|
|
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
|
-
|
|
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
|
}
|