mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
close websocket before unload
This commit is contained in:
parent
d92074233c
commit
811a99e0f0
@ -626,6 +626,12 @@
|
||||
-->
|
||||
<script type="text/javascript">
|
||||
|
||||
$(window).on('beforeunload', function() {
|
||||
if (socket) {
|
||||
socket.close();
|
||||
}
|
||||
});
|
||||
|
||||
function auto_update_calls() {
|
||||
var x = $('#auto_update_calls')[0];
|
||||
if (typeof x != "undefined" && x.checked) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user