mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixing broken pipe issue
This commit is contained in:
parent
f6f69dbbdc
commit
da3b8dc846
@ -73,9 +73,9 @@ $(window).load(function () {
|
|||||||
connect(websocketUrl)
|
connect(websocketUrl)
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).unload(function () {
|
window.onbeforeunload = function() {
|
||||||
disconnect();
|
disconnect();
|
||||||
});
|
};
|
||||||
|
|
||||||
//websocket connection
|
//websocket connection
|
||||||
function connect(target) {
|
function connect(target) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user