diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-03-14 14:25:04 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-03-14 14:25:04 +0400 |
commit | c27698f29129c1fe31f9572336620ef2e920276c (patch) | |
tree | c6500d2593d8666015a8b29faa75e53ce8f366a6 /js | |
parent | c22a0017beb391ed9734b67abf5b1bcfeb26d233 (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.js | 1 |
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]; |