Skip to content

Commit

Permalink
fix: Fix issue that caused two carets to show up on pressing backspace
Browse files Browse the repository at this point in the history
  • Loading branch information
meesam4687 committed May 16, 2024
1 parent 5d2cb0b commit ca55c61
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ document.addEventListener('keydown', function (event) {
}
input = input.slice(0, -1);
terminalBody.innerHTML = terminalBody.innerHTML.slice(0, -1);
terminalBody.innerHTML += '<span class="caret"></span>';
}
if (event.key === 'Enter') {
terminalBody.innerHTML += '<br>';
Expand Down

0 comments on commit ca55c61

Please sign in to comment.