Remove onwsclose in templates
This commit is contained in:
parent
ac0b7afc1a
commit
300572d6da
2 changed files with 0 additions and 17 deletions
|
@ -110,13 +110,6 @@ let META_HEADER = [
|
|||
}
|
||||
}
|
||||
);
|
||||
receiver.onwsclose = function (event) {
|
||||
if (event.code == 1001) {
|
||||
console.log('Navigated away');
|
||||
return;
|
||||
}
|
||||
console.log('Refreshing ws');
|
||||
};
|
||||
|
||||
return receiver;
|
||||
}
|
||||
|
|
|
@ -231,16 +231,6 @@
|
|||
}
|
||||
}
|
||||
);
|
||||
receiver.onwsclose = function (event) {
|
||||
if (event.code == 1001) {
|
||||
console.log('Navigated away');
|
||||
return;
|
||||
}
|
||||
console.log('You probably should refresh?');
|
||||
$('.ws-closed').show().find('a').click(function () {
|
||||
window.location.reload();
|
||||
});
|
||||
};
|
||||
return receiver;
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue