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
diff options
context:
space:
mode:
Diffstat (limited to 'js/piwik.js')
-rw-r--r--js/piwik.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 4ff0d31824..a4a92c7e98 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -912,12 +912,9 @@ var
if (!isString(title)) {
title = title.text || '';
- var tmp = documentAlias.getElementsByTagName('head');
+ var tmp = documentAlias.getElementsByTagName('title');
if (tmp && isDefined(tmp[0])) {
- tmp = tmp[0].getElementsByTagName('title');
- if (tmp && isDefined(tmp[0])) {
- title = tmp[0].text;
- }
+ title = tmp[0].text;
}
}
return title;