@segment/analytics.js-integration-segmentio
Advanced tools
Comparing version 0.0.0-beta.2 to 0.0.0-beta.3
@@ -473,6 +473,10 @@ 'use strict'; | ||
// Exclude the current domain from the list of servers we're querying | ||
var currentTld = getTld(window.location.hostname); | ||
var domains = []; | ||
for (var i = 0; i < this.options.crossDomainIdServers.length; i++) { | ||
var domain = this.options.crossDomainIdServers[i]; | ||
domains.push(domain); | ||
if (getTld(domain) !== currentTld) { | ||
domains.push(domain); | ||
} | ||
} | ||
@@ -525,3 +529,5 @@ | ||
if (this.options.saveCrossDomainIdInLocalStorage) { | ||
return localstorage('seg_xid'); | ||
if (localstorage('seg_xid') !== null) { | ||
return localstorage('seg_xid'); | ||
} | ||
} | ||
@@ -528,0 +534,0 @@ return this.cookie('seg_xid'); |
{ | ||
"name": "@segment/analytics.js-integration-segmentio", | ||
"description": "The Segmentio analytics.js integration.", | ||
"version": "0.0.0-beta.2", | ||
"version": "0.0.0-beta.3", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "analytics.js", |
81349
2005