Correctly reference Math.min (issue #12550)
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
350be95a53
commit
b18426f887
@ -906,7 +906,7 @@ AJAX.registerOnload('functions.js', function () {
|
||||
var remaining = PMA_commonParams.get('LoginCookieValidity') - _idleSecondsCounter;
|
||||
if (remaining > 5) {
|
||||
// max value for setInterval() function
|
||||
var interval = min(remaining * 1000, Math.pow(2, 31) - 1);
|
||||
var interval = Math.min(remaining * 1000, Math.pow(2, 31) - 1);
|
||||
updateTimeout = window.setTimeout(UpdateIdleTime, interval);
|
||||
} else if (remaining > 0) {
|
||||
// We're close to session expiry
|
||||
|
||||
Loading…
Reference in New Issue
Block a user