output handles that
This commit is contained in:
parent
97a6b952d5
commit
d6638263a7
|
|
@ -16,7 +16,7 @@ export function runCommand(input: string) {
|
|||
addToHistory(input)
|
||||
addInput(id, input)
|
||||
|
||||
const [cmd = "", ...args] = input.split(" ")
|
||||
const [cmd = "", ..._args] = input.split(" ")
|
||||
|
||||
if (browserCommands[cmd]) {
|
||||
const result = browserCommands[cmd]()
|
||||
|
|
@ -76,12 +76,5 @@ function handleStreamReplace(msg: Message) {
|
|||
replaceOutput(msg.id!, msg.data as CommandOutput)
|
||||
}
|
||||
|
||||
function handleStreamEnd(msg: Message) {
|
||||
const id = msg.id!
|
||||
|
||||
const status = document.querySelector(`[data-id="${id}"].input .status`)
|
||||
if (!status) return
|
||||
|
||||
status.classList.remove("purple")
|
||||
status.classList.remove("green")
|
||||
function handleStreamEnd(_msg: Message) {
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user