beforeunload works more reliably than unload
This commit is contained in:
parent
8f46d961ef
commit
301fa4a8a8
2
app.js
2
app.js
|
@ -363,7 +363,7 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).bind('unload', function () {
|
$(window).bind('beforeunload', function () {
|
||||||
if (connection && connection.connected) {
|
if (connection && connection.connected) {
|
||||||
// ensure signout
|
// ensure signout
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in New Issue