mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix block scoping error for message object creation
This commit is contained in:
parent
9a3109043c
commit
e401be6fb2
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue