Files: 930ea9397ccd5144d16edc91e33b1d5d3d881737 / message / html / decorate / data-root.js
281 bytesRaw
1 | const nest = require('depnest') |
2 | |
3 | exports.gives = nest('message.html.decorate') |
4 | |
5 | exports.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