close websocket before unload
This commit is contained in:
parent
0d31ccd62d
commit
1c9b22793a
|
@ -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