mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Just remembered why I limited it to listening to one id at a time
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user