var h = require('hyperscript') var tools = require('./tools') function hash () { return window.location.hash.substring(1) } module.exports = function (msg) { var message = h('div.message#' + msg.key.substring(0, 44)) //FULL FALLBACK message.appendChild(tools.header(msg)) message.appendChild(h('pre', tools.rawJSON(msg.value.content))) return message }