diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-10-01 02:13:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 02:13:01 +0300 |
commit | 261f2f0d4a2c79d8d55c122edb00295d9d1f7efa (patch) | |
tree | 099acedf9aafdb5a24b9ad788fa1b3ee62490f9e /js/piwik.js | |
parent | 00a1698423010dbf22c80c943e383193e34a2bc3 (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.js | 8 |
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) { |