Modified jquery window function

This commit is contained in:
Jose Gonzalez 2019-06-27 09:05:22 +02:00
parent ead768c9df
commit 77419ee709
1 changed files with 3 additions and 3 deletions

View File

@ -120,8 +120,7 @@ echo "<div style='width:100%'>".html_print_button(
init_webchat(); init_webchat();
}); });
$(window).on("beforeunload",function () {
$(window).unload(function () {
exit_webchat(); exit_webchat();
}); });
@ -305,6 +304,7 @@ echo "<div style='width:100%'>".html_print_button(
data: parameters, data: parameters,
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
console.log(data);
} }
}); });
} }