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:
authormattab <matthieu.aubry@gmail.com>2014-03-14 14:25:04 +0400
committermattab <matthieu.aubry@gmail.com>2014-03-14 14:25:04 +0400
commitc27698f29129c1fe31f9572336620ef2e920276c (patch)
treec6500d2593d8666015a8b29faa75e53ce8f366a6 /js
parentc22a0017beb391ed9734b67abf5b1bcfeb26d233 (diff)
Fixes #4856 Make sure setAPIUrl, when called, is executed before any other request is sent.
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 1cbcef4da9..ef966f1593 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -3069,6 +3069,7 @@ if (typeof Piwik !== 'object') {
// find the call to setTrackerUrl or setSiteid (if any) and call them first
for (iterator = 0; iterator < _paq.length; iterator++) {
if (_paq[iterator][0] === 'setTrackerUrl'
+ || _paq[iterator][0] === 'setAPIUrl'
|| _paq[iterator][0] === 'setSiteId') {
apply(_paq[iterator]);
delete _paq[iterator];