Slow your roll, socket status updates
Avoid a 1 sec flash of "Disconnected" if connection is dropped only momentarily. // FREEBIE
This commit is contained in:
parent
4b47833928
commit
e842ade196
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
var SocketView = Whisper.View.extend({
|
var SocketView = Whisper.View.extend({
|
||||||
className: 'status',
|
className: 'status',
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
setInterval(this.updateStatus.bind(this), 1000);
|
setInterval(this.updateStatus.bind(this), 5000);
|
||||||
},
|
},
|
||||||
updateStatus: function() {
|
updateStatus: function() {
|
||||||
extension.windows.getBackground(function(bg) {
|
extension.windows.getBackground(function(bg) {
|
||||||
|
|
Loading…
Reference in a new issue