@ -19,6 +19,8 @@
window . addEventListener ( 'online' , this . update . bind ( this ) ) ;
window . addEventListener ( 'online' , this . update . bind ( this ) ) ;
window . addEventListener ( 'offline' , this . update . bind ( this ) ) ;
window . addEventListener ( 'offline' , this . update . bind ( this ) ) ;
Whisper . events . on ( 'unauthorized' , this . update , this ) ;
Whisper . events . on ( 'reconnectTimer' , this . onReconnectTimer , this ) ;
this . model = new Backbone . Model ( ) ;
this . model = new Backbone . Model ( ) ;
this . listenTo ( this . model , 'change' , this . onChange ) ;
this . listenTo ( this . model , 'change' , this . onChange ) ;
@ -26,6 +28,9 @@
events : {
events : {
'click .openInstaller' : extension . install
'click .openInstaller' : extension . install
} ,
} ,
onReconnectTimer : function ( ) {
this . setSocketReconnectInterval ( 60000 ) ;
} ,
finishConnectingGracePeriod : function ( ) {
finishConnectingGracePeriod : function ( ) {
this . withinConnectingGracePeriod = false ;
this . withinConnectingGracePeriod = false ;
} ,
} ,