commit d7dc2254c91a143006ef6fd0a5ac7e28c748d3b2
parent aeb181e0e79075b619e4a1cb608291ac0d109136
Author: Marcel <mtrnord1@gmail.com>
Date: Wed, 30 Nov 2016 13:41:57 +0100
fix bug
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/index.js b/index.js
@@ -43,9 +43,10 @@ io.on('connection', function(socket){
if (_.findIndex(assets, key) == assets.length-1) {
console.log("not local");
io.emit('AupdateStatus', 'NOTlocal');
- }else {
- io.emit('AupdateStatus', 'bug');
}
+ // }else {
+ // io.emit('AupdateStatus', 'bug');
+ // }
console.log("Länge X " + _.findIndex(assets, key));
}
})
@@ -74,9 +75,10 @@ io.on('connection', function(socket){
if (_.findIndex(assets, key) == assets.length-1) {
console.log("not local");
io.emit('AupdateStatus', 'NOTlocal');
- }else {
- io.emit('AupdateStatus', 'bug');
}
+ // }else {
+ // io.emit('AupdateStatus', 'bug');
+ // }
console.log("Länge X " + _.findIndex(assets, key));
}
})