diff options
| author | 2018-05-26 13:14:59 +0200 | |
|---|---|---|
| committer | 2018-05-26 13:14:59 +0200 | |
| commit | 2813707a40a8dc5809ad17b4a14fc2707f28ef0f (patch) | |
| tree | 8885d67de870328622cfee0a7dbed952a1b2e9ba | |
| parent | remove pass (diff) | |
beforeunload was never run, removed
| -rw-r--r-- | templates/index.html | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html index 9fd6350..8de9627 100644 --- a/templates/index.html +++ b/templates/index.html @@ -91,11 +91,6 @@ function generate_id(){ return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); } -window.onbeforeunload = function() { - sendMessage("disconnect") - websocket.close() -}; - window.addEventListener("load", init, false); </script> |