Skip to content

Commit

Permalink
Merge pull request #3952 from vector-im/dbkr/electron_copy_link_location
Browse files Browse the repository at this point in the history
Desktop: 'copy link address'
  • Loading branch information
lukebarnard1 authored May 18, 2017
2 parents 16899d3 + dfb30e9 commit b290a28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions electron_app/src/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b290a28

Please sign in to comment.