From 9eaa34902552a6e00c2e6351981f82a9a5585823 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 07:47:51 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20vide?= =?UTF-8?q?o.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video.html b/video.html index a8268f3..660da75 100644 --- a/video.html +++ b/video.html @@ -19,7 +19,7 @@ console.log("connection closed"); }; - window.onunload=function(){ + window.onbeforeunload=function(){ ws.close(); };