Fix for WebSocket failing when the page is refreshed

This commit is contained in:
GulliblePsychologist 2020-01-14 21:07:23 +00:00
parent edff348d87
commit 312656c368
3 changed files with 31 additions and 6 deletions

View file

@ -284,7 +284,6 @@ $(document).ready(function() {
// Event when closing window (have to have Evennia initialized)
$(window).bind("beforeunload", plugin_handler.onBeforeUnload);
$(window).bind("unload", Evennia.connection.close);
// Event when any key is pressed
$(document).keydown(plugin_handler.onKeydown)