Skip to content

Commit

Permalink
fix: use activeDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
kometenstaub committed May 4, 2023
1 parent eb278b2 commit b69cd67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/LOC/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function focus() {
}
function focusInput() {
//@ts-ignore
document.getElementsByClassName("prompt-input")[0].focus();
activeDocument.getElementsByClassName("prompt-input")[0].focus();
}

export function renderSug(item: SuggesterItem, el: HTMLElement) {
Expand Down

0 comments on commit b69cd67

Please sign in to comment.