diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-08-20 16:11:08 +0200 |
---|---|---|
committer | Sergey Lukin <sergej.lukin@gmail.com> | 2015-08-21 11:54:24 +0300 |
commit | c8ca80e0d8d363a2bf99944d27d2f5ca423a1aec (patch) | |
tree | 0c095d5d0a3a9a4065422b97711153b7068011fb /index.html | |
parent | 6aefb731e00e5638f10be928707d67bc4421e3f2 (diff) | |
download | build-server-status-master.tar.bz2 build-server-status-master.tar.xz |
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -68,8 +68,9 @@ // called when a message arrives function onMessageArrived(message) { var host = message.destinationName || null; - host = host ? host.split("build/build-").pop() : null; - mqtt_msg(host,message.payloadString); + host = host ? host.split("/").pop() : null; + if (host.match(/^build-/)) + mqtt_msg(host,message.payloadString); } setTimeout('sort_table();', 1500); |