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:
@@ -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. */
|
||||||
|
Reference in New Issue
Block a user