diff options
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/contextMenu.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/webview/contextMenu.js b/src/webview/contextMenu.js index 7ab60d251..e77ff2326 100644 --- a/src/webview/contextMenu.js +++ b/src/webview/contextMenu.js | |||
@@ -19,6 +19,19 @@ export default async function setupContextMenu(handler) { | |||
19 | }) | 19 | }) |
20 | ); | 20 | ); |
21 | } | 21 | } |
22 | |||
23 | if (menuInfo.linkURL) { | ||
24 | menu.insert( | ||
25 | 2, | ||
26 | new remote.MenuItem({ | ||
27 | label: "Open Link in Ferdi", | ||
28 | click: () => { | ||
29 | window.location.href = menuInfo.linkURL; | ||
30 | } | ||
31 | }) | ||
32 | ); | ||
33 | } | ||
34 | |||
22 | return menu; | 35 | return menu; |
23 | }; | 36 | }; |
24 | 37 | ||