aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render-msg.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index f51f936..444f1c0 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -186,6 +186,7 @@ RenderMsg.prototype.message = function (raw, cb) {
case 'ferment/update':
case 'robeson/update':
return this.update(cb)
+ case 'wifi-network': return this.wifiNetwork(cb)
default: return this.object(cb)
}
}
@@ -518,3 +519,17 @@ RenderMsg.prototype.musicRelease = function (cb) {
}))
], cb)
}
+
+RenderMsg.prototype.wifiNetwork = function (cb) {
+ var net = this.c.network || {}
+ this.wrap([
+ h('div', 'wifi network'),
+ h('table',
+ Object.keys(net).map(function (key) {
+ return h('tr',
+ h('td', key),
+ h('td', h('pre', JSON.stringify(net[key]))))
+ })
+ ),
+ ], cb)
+}