Fix for WebSocket failing when the page is refreshed
This commit is contained in:
parent
edff348d87
commit
312656c368
3 changed files with 31 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue