Skip to content

Commit

Permalink
patch: set inner HTML instead of textContent for the prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrl committed Jul 16, 2023
1 parent 1cb585f commit 181238b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TerminalSettings } from '../types'
const setPrompt = (prompt: string, inputContainer: HTMLElement, settings: TerminalSettings) => {
settings.prompt = prompt
const promptContainer = inputContainer.querySelector('span') as HTMLElement
promptContainer.textContent = prompt
promptContainer.innerHTML = prompt
}

export default setPrompt

0 comments on commit 181238b

Please sign in to comment.