mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with .replace of boolean
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user