fix(context-menu): Only handle context menu if context is electron app

This commit is contained in:
hack.ily 2019-10-28 23:55:55 -07:00 committed by Sean Yesmunt
parent e650b83385
commit 0596d5e7bd

View file

@ -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) {