Adjust background tabs max update interval down to 5 minutes instead of 10.

This commit is contained in:
Nicolas Stepien 2012-07-12 17:39:20 +02:00
parent e60c01bd78
commit ff4c107add
3 changed files with 3 additions and 2 deletions

View File

@ -3004,7 +3004,7 @@
if (!(d.hidden || d.oHidden || d.mozHidden || d.webkitHidden)) {
j = Math.min(j, 6);
}
return Math.max(i, [5, 10, 15, 20, 30, 60, 90, 120, 300, 600][j]);
return Math.max(i, [5, 10, 15, 20, 30, 60, 90, 120, 240, 300][j]);
},
timeout: function() {
var n;

View File

@ -1,5 +1,6 @@
master
- Mayhem
Adjust background tabs max update interval down to 5 minutes instead of 10.
Divide the Delete Link in the Menu into a Post and Image deletion links.
The Delete Links in the Menu now have a cooldown.

View File

@ -2409,7 +2409,7 @@ Updater =
unless d.hidden or d.oHidden or d.mozHidden or d.webkitHidden
# Don't increase the refresh rate too much on visible tabs.
j = Math.min j, 6
Math.max i, [5, 10, 15, 20, 30, 60, 90, 120, 300, 600][j]
Math.max i, [5, 10, 15, 20, 30, 60, 90, 120, 240, 300][j]
timeout: ->
Updater.timeoutID = setTimeout Updater.timeout, 1000