From 0596d5e7bdd114ee7826b8eae4787fd0e5c18c6e Mon Sep 17 00:00:00 2001 From: "hack.ily" Date: Mon, 28 Oct 2019 23:55:55 -0700 Subject: [PATCH] fix(context-menu): Only handle context menu if context is electron app --- src/ui/component/claimPreview/view.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/component/claimPreview/view.jsx b/src/ui/component/claimPreview/view.jsx index cde44a810..aa0ecb201 100644 --- a/src/ui/component/claimPreview/view.jsx +++ b/src/ui/component/claimPreview/view.jsx @@ -134,11 +134,13 @@ const ClaimPreview = forwardRef((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) {