From 18efd9676e4f5324272858a85a5ae7da0efc4997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Wed, 10 Jun 2015 19:06:14 +0200 Subject: [PATCH] Just remembered why I limited it to listening to one id at a time --- static/js/hostcontroller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/hostcontroller.js b/static/js/hostcontroller.js index dd7d95fc..ab9b22af 100755 --- a/static/js/hostcontroller.js +++ b/static/js/hostcontroller.js @@ -8,6 +8,9 @@ socket.on("id", function(id) $("#code-text").text(id.toUpperCase()) $("#code-qr").attr("src", "https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl="+codeURL); $("#code-link").attr("href", codeURL); + if(!began) + { + began = true; socket.on(id, function(arr) { console.log(arr); @@ -44,4 +47,5 @@ socket.on("id", function(id) else if(arr[0] == "skip") skip(); }); + } });