mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Fixed issue with webclient sessions hanging on disconnect.
This commit is contained in:
parent
93d0db8489
commit
bda5d88c24
2 changed files with 9 additions and 6 deletions
|
|
@ -292,11 +292,7 @@ $(document).ready(function(){
|
|||
});
|
||||
|
||||
// Callback function - called when the browser window resizes
|
||||
$(window).resize(function() {
|
||||
webclient_set_sizes();
|
||||
});
|
||||
$(window).resize(webclient_set_sizes);
|
||||
|
||||
// Callback function - called when page is closed or moved away from.
|
||||
$(window).unload(function() {
|
||||
webclient_close();
|
||||
});
|
||||
$(window).bind("beforeunload", webclient_close);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue