From 301fa4a8a8b8e61476ff11dc1dec60873198a12b Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 30 Dec 2013 09:31:08 +0100 Subject: [PATCH] beforeunload works more reliably than unload --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 1e79176a7..ed45468d2 100644 --- a/app.js +++ b/app.js @@ -363,7 +363,7 @@ $(document).ready(function () { } }); -$(window).bind('unload', function () { +$(window).bind('beforeunload', function () { if (connection && connection.connected) { // ensure signout $.ajax({