git ssb

16+

Dominic / patchbay



Tree: a2205aaf14607dd04ff3c4f2c39d682429a1433a

Files: a2205aaf14607dd04ff3c4f2c39d682429a1433a / message / html / decorate / data-root.js

281 bytesRaw
1const nest = require('depnest')
2
3exports.gives = nest('message.html.decorate')
4
5exports.create = (api) => {
6 return nest('message.html.decorate', function (element, { msg }) {
7 if (msg.value.content.root) element.dataset.root = msg.value.content.root
8 return element
9 })
10}
11

Built with git-ssb-web