From 09f6079cb7a0d1142e81b85c218571237d6fc540 Mon Sep 17 00:00:00 2001 From: Heber Leonard Date: Sun, 6 Apr 2025 11:13:28 -0300 Subject: Update main.js --- scripts/main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts/main.js') diff --git a/scripts/main.js b/scripts/main.js index 13ac789..a638a61 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -103,7 +103,7 @@ async function getInputValue(){ } else{ falseValue(value); - createText(`command not found: ${value}`) + createErrorText(`command not found: ${value}`) } } @@ -152,4 +152,10 @@ function createCode(code, text){ app.appendChild(p); } -open_terminal(); \ No newline at end of file +function createErrorText(text) { + const p = document.createElement("p"); + p.innerText = text; + app.appendChild(p); +} + +open_terminal(); -- cgit v1.2.3