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