1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-11-29 21:23:11 +03:00

Desktop: 'copy link address'

Add 'copy link address' to link context menu in electron app
This commit is contained in:
David Baker
2017-05-18 11:32:10 +01:00
parent ca3921f3a0
commit dfb30e91de

View File

@@ -86,6 +86,12 @@ function onLinkContextMenu(ev, params) {
safeOpenURL(params.linkURL);
},
}));
popup_menu.append(new electron.MenuItem({
label: 'Copy Link Address',
click() {
electron.clipboard.writeText(params.linkURL);
},
}));
popup_menu.popup();
ev.preventDefault();
}