Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-02-13 03:28:40 +0300
committermattab <matthieu.aubry@gmail.com>2015-02-13 03:28:40 +0300
commit36552040aae75f428ede3cf224ebd143ef4c3b3e (patch)
tree19d38dc9f43524ddae5b08602b3c74c34b26d079 /js
parent347dd684734ca08c030f5dbc7da6c06b3fd64ec5 (diff)
Refs #7167 add .length and update minified piwik.js
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 6ba9d3dc04..6c702143c5 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -4082,7 +4082,7 @@ if (typeof Piwik !== 'object') {
* @return string Visitor ID in hexits (or null, if not yet known)
*/
getVisitorId: function () {
- return configUserId ? sha1(configUserId).substr(0, 16) : (loadVisitorIdCookie())[1];
+ return configUserId.length ? sha1(configUserId).substr(0, 16) : (loadVisitorIdCookie())[1];
},
/**