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:
authorThomas Steur <thomas.steur@gmail.com>2015-11-16 23:55:45 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-11-16 23:55:45 +0300
commit1a8297e490fc45d9edb778417fe75014cad175d0 (patch)
treebf15d33d35c3c9d7b09d5f4fdaff0cc2b823e684 /js
parente90d8e45336809867bb84b1efd297e5dc748f96f (diff)
refs #9125 location.domain is not set when used in xulrunner
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/piwik.js b/js/piwik.js
index c082e34272..5a6fde9e30 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -1535,6 +1535,14 @@ if (typeof Piwik !== 'object') {
* Fix-up URL when page rendered from search engine cache or translated page
*/
function urlFixup(hostName, href, referrer) {
+ if (!hostName) {
+ hostName = '';
+ }
+
+ if (!href) {
+ href = '';
+ }
+
if (hostName === 'translate.googleusercontent.com') { // Google
if (referrer === '') {
referrer = href;