diff options
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r-- | webapp/root.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx index 98c744477..e28cbfd75 100644 --- a/webapp/root.jsx +++ b/webapp/root.jsx @@ -60,6 +60,8 @@ function preRenderSetup(callwhendone) { // Make sure the websockets close and reset version $(window).on('beforeunload', () => { + // Turn off to prevent getting stuck in a loop + $(window).off('beforeunload'); BrowserStore.setLastServerVersion(''); if (UserStore.getCurrentUser()) { AsyncClient.viewChannel('', ChannelStore.getCurrentId() || ''); |