analytics.js-loader
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -0,1 +1,6 @@ | ||
# 2.1.1 (2016-01-01) | ||
* use https: protocol by default | ||
- segment script is loaded from a secure request if current protocol is not http: (for chrome-extension: for example) | ||
# 2.1.0 (2015-10-27) | ||
@@ -21,2 +26,1 @@ | ||
* initial | ||
@@ -66,4 +66,4 @@ module.exports = load; | ||
script.async = true; | ||
script.src = ('https:' === document.location.protocol | ||
? 'https://' : 'http://') | ||
script.src = ('http:' === document.location.protocol | ||
? 'http://' : 'https://') | ||
+ 'cdn.segment.com/analytics.js/v1/' | ||
@@ -90,4 +90,4 @@ + key + '/analytics.min.js'; | ||
} | ||
return analytics; | ||
} |
{ | ||
"name": "analytics.js-loader", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Asynchronously load segment.com analytics.js with an npm module", | ||
@@ -25,2 +25,2 @@ "main": "index.js", | ||
"homepage": "https://github.com/vvo/analytics.js-loader" | ||
} | ||
} |
5247