Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

beforeunload works more reliably than unload

Philipp Hancke301fa4a8a8b8
diff --git a/app.js b/app.js
index 1e79176a7e..ed45468d21 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({