Skip to content

Commit

Permalink
fix: cleanup a console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Nov 23, 2023
1 parent 6eb9b82 commit 005f189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/components/modals/JSONEditorModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
JSONEditorSelection,
JSONParser,
JSONPathParser,
JSONSelection,

Check failure on line 15 in src/lib/components/modals/JSONEditorModal.svelte

View workflow job for this annotation

GitHub Actions / lint

'JSONSelection' is defined but never used
OnClassName,
OnPatch,
OnRenderMenu,
Expand Down Expand Up @@ -94,7 +95,7 @@
}
function scrollToSelection() {
const selection: JSONPath | null = last(stack)?.selection || null
const selection: JSONEditorSelection | null = last(stack)?.selection || null
if (selection) {
refEditor.scrollTo(getFocusPath(selection))
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/domUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ export function insertActiveElementContents(

if (activeElement && activeElement.isContentEditable) {
activeElement.textContent = replaceContents ? text : activeElement.textContent + text
console.log('UPDATED TEXT', replaceContents ? text : activeElement.textContent + text)
setCursorToEnd(activeElement)
if (onActiveElement) {
onActiveElement(activeElement)
Expand Down

0 comments on commit 005f189

Please sign in to comment.