Files: d2d97715e7cfb60e2d16cc9310db7fac8f3e6af7 / plugs / message / html / decorate / context-menu.js
358 bytesRaw
1 | const nest = require('depnest') |
2 | const contextMenu = require('../../../../lib/context-menu') |
3 | |
4 | exports.gives = nest('message.html.decorate') |
5 | |
6 | exports.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