summaryrefslogtreecommitdiffstats
path: root/web/templates/head.html
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-02-08 07:30:16 -0500
committerChristopher Speller <crspeller@gmail.com>2016-02-08 07:30:16 -0500
commitdaa363574a3cb01fecdf8cdbfabd0a9739bf13c9 (patch)
tree5edfa02a939bc95438a18f6f5184341e620124cd /web/templates/head.html
parent91c78682f5db0a6323753422f20c0a55a60ad35b (diff)
parentf0a84897b451a0e27eac6d16ef24b642254a0f2c (diff)
downloadchat-daa363574a3cb01fecdf8cdbfabd0a9739bf13c9.tar.gz
chat-daa363574a3cb01fecdf8cdbfabd0a9739bf13c9.tar.bz2
chat-daa363574a3cb01fecdf8cdbfabd0a9739bf13c9.zip
Merge pull request #2094 from mattermost/GIT-1812
GIT-1812 fixing wesocket issue with firefox
Diffstat (limited to 'web/templates/head.html')
-rw-r--r--web/templates/head.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/templates/head.html b/web/templates/head.html
index b1ec905b5..da65e1779 100644
--- a/web/templates/head.html
+++ b/web/templates/head.html
@@ -122,6 +122,12 @@
}
});
});
+
+ $(window).on('beforeunload', function(){
+ if (window.SocketStore) {
+ SocketStore.close();
+ }
+ });
</script>
<script>