Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
changed name function
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoMorenoSirius committed May 24, 2024
1 parent fb7095c commit 25cac07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/mocksi-lite/content/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function decorateTextTag(
return fragment;
}

function applyHighlight2(
function applyHighlight(
targetedElement: HTMLElement,
selectedRange: Selection | null,
) {
Expand Down Expand Up @@ -84,7 +84,7 @@ function onDoubleClickText(event: MouseEvent) {
}
const { startOffset, endOffset } = window.getSelection()?.getRangeAt(0) || {};
if (startOffset !== undefined && endOffset !== undefined) {
applyHighlight2(targetedElement, window.getSelection());
applyHighlight(targetedElement, window.getSelection());
} else {
console.log("ERROR! no offset detected", targetedElement);
}
Expand Down

0 comments on commit 25cac07

Please sign in to comment.