Files: 7ec8576dc1fa3f5fd84478f8aa7f3ea3c6805c81 / message / html / decorate / data-root.js
361 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 | if (msg.value.content.about) element.dataset.root = msg.value.content.about |
9 | return element |
10 | }) |
11 | } |
12 |
Built with git-ssb-web