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:
2020-04-17 13:27:41 +02:00
parent 7c238571bf
commit 86206d42dc

View File

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