diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-08 07:30:16 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-08 07:30:16 -0500 |
commit | daa363574a3cb01fecdf8cdbfabd0a9739bf13c9 (patch) | |
tree | 5edfa02a939bc95438a18f6f5184341e620124cd /web/templates | |
parent | 91c78682f5db0a6323753422f20c0a55a60ad35b (diff) | |
parent | f0a84897b451a0e27eac6d16ef24b642254a0f2c (diff) | |
download | chat-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')
-rw-r--r-- | web/templates/head.html | 6 |
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> |