git ssb

16+

Dominic / patchbay



Tree: a5b19e9a7af23f8f2cfcf33116137fad4143479b

Files: a5b19e9a7af23f8f2cfcf33116137fad4143479b / message / html / decorate / data-text.js

281 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

Built with git-ssb-web