Move Whisper.events out of views and tests
This commit is contained in:
parent
a1c7369347
commit
40af226a4a
6 changed files with 13 additions and 6 deletions
|
@ -324,5 +324,16 @@
|
|||
}
|
||||
};
|
||||
|
||||
Whisper.events.on('unauthorized', function() {
|
||||
if (owsDesktopApp.inboxView) {
|
||||
owsDesktopApp.inboxView.networkStatusView.update();
|
||||
}
|
||||
});
|
||||
Whisper.events.on('reconnectTimer', function() {
|
||||
if (owsDesktopApp.inboxView) {
|
||||
owsDesktopApp.inboxView.networkStatusView.setSocketReconnectInterval(60000);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue