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) {
|
||||
// @if TARGET='app'
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (claim) {
|
||||
openCopyLinkMenu(convertToShareLink(claim.permanent_url), e);
|
||||
}
|
||||
// @endif
|
||||
}
|
||||
|
||||
function handleOnClick(e) {
|
||||
|
|
Loading…
Reference in a new issue