From f0a84897b451a0e27eac6d16ef24b642254a0f2c Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Fri, 5 Feb 2016 14:17:53 -0800 Subject: GIT-1812 fixing wesocket issue with firefox --- web/templates/head.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/templates/head.html') 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(); + } + });