Fixed shuffle issue where users not logged in could not shuffle

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-09 15:30:10 +02:00
parent e2cc65750a
commit e974befe15
3 changed files with 6 additions and 5 deletions

View File

@@ -146,7 +146,8 @@ function remove_bar()
function shuffle()
{
socket.emit('shuffle', adminpass);
var pass_to_send = adminpass !== undefined ? adminpass : "";
socket.emit('shuffle', pass_to_send);
}
function rnd(arr)