From dfb30e91de681d7cbcb4539e51f860b9afc95f24 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 18 May 2017 11:32:10 +0100 Subject: [PATCH] Desktop: 'copy link address' Add 'copy link address' to link context menu in electron app --- electron_app/src/electron-main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index 32e305d8..29a9f08a 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -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(); }