commit 9b9c23e092b35359cd1a249c84d766bec7456a92
parent 3d5e6379a9451328139a64a198f9282b743a8df1
Author: Marcel <mtrnord1@gmail.com>
Date: Wed, 30 Nov 2016 10:06:04 +0100
fix bug
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
@@ -68,7 +68,7 @@ io.on('connection', function(socket){
var local_asset = key["name"]
io.emit('AupdateStatus', 'local');
}else {
- if (_.findIndex(assets, key) != assets.length) {
+ if (_.findIndex(assets, key) != assets.length-1) {
console.log("not local");
io.emit('AupdateStatus', 'NOTlocal');
}