summaryrefslogtreecommitdiffstats
path: root/webapp/root.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-04-17 15:08:56 -0400
committerChristopher Speller <crspeller@gmail.com>2017-04-17 15:08:56 -0400
commit92d8fa4aa8af170d0018baed94a8787d06297e44 (patch)
treedc5000a3584952c797c03bf4331282a5e1536848 /webapp/root.jsx
parent742bab6429aeb1b581275da3c06af99fe293baab (diff)
parent30974533941e73f102505d07badf538cfdbbf3fc (diff)
downloadchat-92d8fa4aa8af170d0018baed94a8787d06297e44.tar.gz
chat-92d8fa4aa8af170d0018baed94a8787d06297e44.tar.bz2
chat-92d8fa4aa8af170d0018baed94a8787d06297e44.zip
Merge branch 'release-3.8'
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r--webapp/root.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx
index 0236f380b..177eb1ec4 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() || '');