aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-03-02 10:02:58 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-03-02 10:02:58 +0100
commit06a0e08a5b4e8f8696dab3ce2c6bdb8c4a901f9f (patch)
tree8cbccd74055b49cd26bbcb17594230495fb10a93 /src
parentAdd paste as plain text to context menu (diff)
downloadferdium-app-06a0e08a5b4e8f8696dab3ce2c6bdb8c4a901f9f.tar.gz
ferdium-app-06a0e08a5b4e8f8696dab3ce2c6bdb8c4a901f9f.tar.zst
ferdium-app-06a0e08a5b4e8f8696dab3ce2c6bdb8c4a901f9f.zip
Add "Open Link in Ferdi" to context menu
Diffstat (limited to 'src')
-rw-r--r--src/webview/contextMenu.js13
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