... | ... |
@@ -109,6 +109,10 @@ this.App = |
109 | 109 |
App.Views.tabbar = new Xmpp.Views.Tabbar.TabbarView() |
110 | 110 |
|
111 | 111 |
_bindListeners: (callback) -> |
112 |
+ App._dispatcher.bind('connection_closed', -> |
|
113 |
+ window.location.reload() |
|
114 |
+ ) |
|
115 |
+ |
|
112 | 116 |
App._dispatcher.bind('app.client.connected', (jid) -> |
113 | 117 |
callback?(jid) |
114 | 118 |
) |