Notifications: Set timeout from 30 to 60 seconds

This slightly reduces server load, as clients that keep a page open
will query less often.
This commit is contained in:
Francesco Siddi 2020-04-17 13:27:41 +02:00
parent 7c238571bf
commit 86206d42dc

View File

@ -354,11 +354,12 @@ $(function() {
function getNotificationsLoop() {
//- Fetch the actual notifications
getNotifications();
var getLoop = setTimeout(function () {
//- Call itself again in 60 seconds
setTimeout(function () {
getNotificationsLoop();
}, 30000);
}, 60 * 1000);
}
/* Returns a more-or-less reasonable message given an error response object. */