git ssb

16+

Dominic / patchbay



Tree: 6c319fc2cb70680ca033095442a6207ca6f57f2c

Files: 6c319fc2cb70680ca033095442a6207ca6f57f2c / message / html / decorate / data-text.js

282 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.text) element.dataset.text = msg.value.content.text
8 return element
9 })
10}
11
12

Built with git-ssb-web