Remove onwsclose in templates

This commit is contained in:
cuom1999 2022-05-18 14:02:23 -05:00
parent ac0b7afc1a
commit 300572d6da
2 changed files with 0 additions and 17 deletions

View file

@ -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; return receiver;
} }

View file

@ -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; return receiver;
} }
</script> </script>