diff options
author | =Corey Hulen <corey@hulen.com> | 2016-02-05 14:17:53 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-02-05 14:17:53 -0800 |
commit | f0a84897b451a0e27eac6d16ef24b642254a0f2c (patch) | |
tree | baaa7750506482052a2ef37a346bb60ffa534d06 /web/templates | |
parent | f4bf476441ab2dfe7920d5be40c05205eff4ed94 (diff) | |
download | chat-f0a84897b451a0e27eac6d16ef24b642254a0f2c.tar.gz chat-f0a84897b451a0e27eac6d16ef24b642254a0f2c.tar.bz2 chat-f0a84897b451a0e27eac6d16ef24b642254a0f2c.zip |
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> |