git ssb

16+

Dominic / patchbay



Tree: 80b4d8ac8c084a4019c0623e0b0c409fc88c50ae

Files: 80b4d8ac8c084a4019c0623e0b0c409fc88c50ae / message / html / decorate / data-root.js

361 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 if (msg.value.content.about) element.dataset.root = msg.value.content.about
9 return element
10 })
11}
12

Built with git-ssb-web