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:
parent
7c238571bf
commit
86206d42dc
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user