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-08-10 22:54:11 +0300
committerGitHub <noreply@github.com>2020-08-10 22:54:11 +0300
commit467253f17e47753a4007b4e5640fbbd5c75dc852 (patch)
tree17ec213ac000ff4e94159b3cdfaba38349dfcb64 /js/piwik.js
parent35d8e33bab707d9ebffd5fab5d0758cb0019c241 (diff)
Fix default value of heart beat timer (#16282)
* Fix default value of heart beart timer * rebuilt piwik.js Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Diffstat (limited to 'js/piwik.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 309302a7a7..e7e4df7540 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -6008,8 +6008,8 @@ if (typeof window.Matomo !== 'object') {
* @param int heartBeatDelayInSeconds Defaults to 15s. Cannot be lower than 5.
*/
this.enableHeartBeatTimer = function (heartBeatDelayInSeconds) {
- heartBeatDelayInSeconds = Math.max(heartBeatDelayInSeconds, 5);
- configHeartBeatDelay = (heartBeatDelayInSeconds || 15) * 1000;
+ heartBeatDelayInSeconds = Math.max(heartBeatDelayInSeconds || 15, 5);
+ configHeartBeatDelay = heartBeatDelayInSeconds * 1000;
// if a tracking request has already been sent, start the heart beat timeout
if (lastTrackerRequestTime !== null) {