Files: 04c385c3b68e8f6a953b37f9f099b1116e22c8b5 / message / html / decorate / data-text.js
282 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.text) element.dataset.text = msg.value.content.text |
8 | return element |
9 | }) |
10 | } |
11 | |
12 |
Built with git-ssb-web