Fixed issue with .replace of boolean

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-20 08:07:00 +01:00
parent 1da48a7f1a
commit 8d14b14c65

View File

@@ -627,7 +627,7 @@ function send_play(coll, socket, broadcast) {
}
function sendColor(coll, socket, id) {
if(coll != undefined) {
if(coll != undefined && typeof(coll) == "string") {
coll = coll.replace(/ /g,'');
}
var url = 'https://img.youtube.com/vi/'+id+'/mqdefault.jpg';