mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove some debug code
This commit is contained in:
parent
a4ed72439f
commit
f6622bc959
1 changed files with 0 additions and 17 deletions
|
|
@ -444,23 +444,6 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
|
|||
]
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
;(async () => {
|
||||
if (
|
||||
'enableSelectToHighlight' in window &&
|
||||
window.enableSelectToHighlight &&
|
||||
selectionData
|
||||
) {
|
||||
// console.log('auto highlight: ', selectionData.selection.toString())
|
||||
await createHighlightCallback('none', undefined)
|
||||
selectionData.selection.collapseToStart()
|
||||
// handleClickHighlight(selectionData.mouseEvent)
|
||||
// setSelectionData(null)
|
||||
// window.getSelection()?.removeAllRanges()
|
||||
}
|
||||
})()
|
||||
}, [selectionData, setSelectionData])
|
||||
|
||||
const dispatchHighlightError = (action: string, error: unknown) => {
|
||||
if (props.isAppleAppEmbed) {
|
||||
window?.webkit?.messageHandlers.highlightAction?.postMessage({
|
||||
|
|
|
|||
Loading…
Reference in a new issue