summaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.html b/index.html
index ffff58f..a8e63ce 100644
--- a/index.html
+++ b/index.html
@@ -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);