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:
authorStefan Giehl <stefan@matomo.org>2020-10-28 23:46:35 +0300
committerGitHub <noreply@github.com>2020-10-28 23:46:35 +0300
commit0e910f0badf1aaa6e1b34b83f4f1f9a11bd5b373 (patch)
tree64c6e341629ba8cd9f77c913fa777ee9f3537dfc /plugins/UserCountryMap/javascripts
parenteb1543097d188c322b8470fea240fb62e39d01dd (diff)
Improve possibility to disable visits log / visitor profile (#16598)
Diffstat (limited to 'plugins/UserCountryMap/javascripts')
-rw-r--r--plugins/UserCountryMap/javascripts/realtime-map.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/UserCountryMap/javascripts/realtime-map.js b/plugins/UserCountryMap/javascripts/realtime-map.js
index adf7553a02..416bed57ae 100644
--- a/plugins/UserCountryMap/javascripts/realtime-map.js
+++ b/plugins/UserCountryMap/javascripts/realtime-map.js
@@ -321,6 +321,7 @@
this.$element.on('mapClick', function (e, visit, mapPath) {
var VisitorProfileControl = require('piwik/UI').VisitorProfileControl;
if (visit
+ && piwik.visitorProfileEnabled
&& VisitorProfileControl
&& !self.$element.closest('.visitor-profile').length
) {