mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-09 02:49:41 +00:00
Fixed issue with crashing server
This commit is contained in:
@@ -627,7 +627,9 @@ function send_play(coll, socket, broadcast) {
|
||||
}
|
||||
|
||||
function sendColor(coll, socket, id) {
|
||||
coll = coll.replace(/ /g,'');
|
||||
if(coll != undefined) {
|
||||
coll = coll.replace(/ /g,'');
|
||||
}
|
||||
var url = 'https://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
||||
Jimp.read(url).then(function (image) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user