diff --git a/packages/web/components/templates/article/HighlightsLayer.tsx b/packages/web/components/templates/article/HighlightsLayer.tsx index f48007b59..44235fb13 100644 --- a/packages/web/components/templates/article/HighlightsLayer.tsx +++ b/packages/web/components/templates/article/HighlightsLayer.tsx @@ -349,11 +349,12 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element { } break case 'share': + const message = { + actionID: 'share', + highlightID: focusedHighlight?.id, + } + if (props.isAppleAppEmbed) { - const message = { - actionID: 'share', - highlightID: focusedHighlight?.id, - } window?.webkit?.messageHandlers.highlightAction?.postMessage( message )