diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-08-10 22:54:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 22:54:11 +0300 |
commit | 467253f17e47753a4007b4e5640fbbd5c75dc852 (patch) | |
tree | 17ec213ac000ff4e94159b3cdfaba38349dfcb64 /js/piwik.js | |
parent | 35d8e33bab707d9ebffd5fab5d0758cb0019c241 (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.js | 4 |
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) { |