diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-02-13 03:28:40 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-02-13 03:28:40 +0300 |
commit | 36552040aae75f428ede3cf224ebd143ef4c3b3e (patch) | |
tree | 19d38dc9f43524ddae5b08602b3c74c34b26d079 /js | |
parent | 347dd684734ca08c030f5dbc7da6c06b3fd64ec5 (diff) |
Refs #7167 add .length and update minified piwik.js
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 2 |
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]; }, /** |