aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-05-26 13:14:59 +0200
committerGravatar Christopher Baklid <[email protected]>2018-05-26 13:14:59 +0200
commit2813707a40a8dc5809ad17b4a14fc2707f28ef0f (patch)
tree8885d67de870328622cfee0a7dbed952a1b2e9ba
parentremove pass (diff)
beforeunload was never run, removed
-rw-r--r--templates/index.html5
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>