ls-manual-update

Checks for manual update of ls-vertretunsplan-desktop and tells outdated clients
git clone git://archive.git.mtrnord.blog/MTRNord/ls-manual-update.git
Log | Files | Refs | LICENSE

commit 98936267b60331db0be0a470982b267bcd09e6d8
parent c8dd8eca3e6b851e730aeffef7c52ee0678f12b8
Author: Marcel <mtrnord1@gmail.com>
Date:   Wed, 30 Nov 2016 10:09:19 +0100

fix bug

Diffstat:
Mindex.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/index.js b/index.js @@ -66,11 +66,14 @@ io.on('connection', function(socket){ _.find(assets, function (key) { if (key["name"] == 'local') { var local_asset = key["name"] + console.log("local"); io.emit('AupdateStatus', 'local'); }else { if (_.findIndex(assets, key) == assets.length-1) { console.log("not local"); io.emit('AupdateStatus', 'NOTlocal'); + }else { + io.emit('AupdateStatus', 'bug'); } console.log("Länge X " + _.findIndex(assets, key)); }