git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: d2d97715e7cfb60e2d16cc9310db7fac8f3e6af7

Files: d2d97715e7cfb60e2d16cc9310db7fac8f3e6af7 / plugs / message / html / decorate / context-menu.js

358 bytesRaw
1const nest = require('depnest')
2const contextMenu = require('../../../../lib/context-menu')
3
4exports.gives = nest('message.html.decorate')
5
6exports.create = (api) => {
7 return nest('message.html.decorate', function (element, { msg }) {
8 element.addEventListener('contextmenu', contextMenu.bind(null, msg))
9 element.msg = msg
10 return element
11 })
12}
13

Built with git-ssb-web