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 <tsteur@users.noreply.github.com>2017-10-17 23:06:39 +0300
committerGitHub <noreply@github.com>2017-10-17 23:06:39 +0300
commitffa660f55f96de2cb91131e696529264b0fce83a (patch)
treefae0cfeb1bf3208d20480964106ccebfa12396ea /js
parentd4e57274c765698e82e476de4ad6d1a81b65cc91 (diff)
Fix addTracker does not return the tracker instance
TBD: Need to rebuild js, need to maybe add a test if possible.
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 7a092d8dd8..ebacd2578f 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -7281,9 +7281,9 @@ if (typeof window.Piwik !== 'object') {
*/
addTracker: function (piwikUrl, siteId) {
if (!asyncTrackers.length) {
- createFirstTracker(piwikUrl, siteId);
+ return createFirstTracker(piwikUrl, siteId);
} else {
- asyncTrackers[0].addTracker(piwikUrl, siteId);
+ return asyncTrackers[0].addTracker(piwikUrl, siteId);
}
},