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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-10-01 02:13:01 +0300
committerGitHub <noreply@github.com>2020-10-01 02:13:01 +0300
commit261f2f0d4a2c79d8d55c122edb00295d9d1f7efa (patch)
tree099acedf9aafdb5a24b9ad788fa1b3ee62490f9e /js/piwik.js
parent00a1698423010dbf22c80c943e383193e34a2bc3 (diff)
Make JS tracker work in strict mode (#16498)
* Make JS tracker work in strict mode fix https://github.com/matomo-org/matomo/issues/14791 * rebuilt piwik.js
Diffstat (limited to 'js/piwik.js')
-rw-r--r--js/piwik.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/piwik.js b/js/piwik.js
index b6b16b20e5..bf18d318ef 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -7241,9 +7241,9 @@ if (typeof window.Matomo !== 'object') {
/*jslint sloppy: true */
(function () {
- var jsTrackerType = (typeof AnalyticsTracker);
+ var jsTrackerType = (typeof window.AnalyticsTracker);
if (jsTrackerType === 'undefined') {
- AnalyticsTracker = window.Matomo;
+ window.AnalyticsTracker = window.Matomo;
}
}());
/*jslint sloppy: false */
@@ -7269,8 +7269,8 @@ if (typeof window.Matomo !== 'object') {
* @param string matomoUrl
* @param mixed customData
*/
-if (typeof piwik_log !== 'function') {
- piwik_log = function (documentTitle, siteId, matomoUrl, customData) {
+if (typeof window.piwik_log !== 'function') {
+ window.piwik_log = function (documentTitle, siteId, matomoUrl, customData) {
'use strict';
function getOption(optionName) {