fix(context-menu): Only handle context menu if context is electron app
This commit is contained in:
parent
e650b83385
commit
0596d5e7bd
1 changed files with 2 additions and 0 deletions
|
@ -134,11 +134,13 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleContextMenu(e) {
|
function handleContextMenu(e) {
|
||||||
|
// @if TARGET='app'
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (claim) {
|
if (claim) {
|
||||||
openCopyLinkMenu(convertToShareLink(claim.permanent_url), e);
|
openCopyLinkMenu(convertToShareLink(claim.permanent_url), e);
|
||||||
}
|
}
|
||||||
|
// @endif
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleOnClick(e) {
|
function handleOnClick(e) {
|
||||||
|
|
Loading…
Reference in a new issue