forked from Mirrors/freeswitch
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…
Reference in New Issue