diff --git a/script/script.js b/script/script.js index d177792..d949429 100644 --- a/script/script.js +++ b/script/script.js @@ -264,6 +264,9 @@ const runSalam = (showOutput) => { const code = elm_code.value.toString().trim(); if (!code) { + elm_error.innerHTML = ''; + elm_output.innerHTML = ''; + if (showOutput === true) { Swal.fire({ icon: "error",