Desktop: 'copy link address'
Add 'copy link address' to link context menu in electron app
This commit is contained in:
parent
ca3921f3a0
commit
dfb30e91de
|
@ -86,6 +86,12 @@ function onLinkContextMenu(ev, params) {
|
||||||
safeOpenURL(params.linkURL);
|
safeOpenURL(params.linkURL);
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
popup_menu.append(new electron.MenuItem({
|
||||||
|
label: 'Copy Link Address',
|
||||||
|
click() {
|
||||||
|
electron.clipboard.writeText(params.linkURL);
|
||||||
|
},
|
||||||
|
}));
|
||||||
popup_menu.popup();
|
popup_menu.popup();
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue