From 50825abe0cbecc18a9271724041c3e9b9d08b948 Mon Sep 17 00:00:00 2001 From: Max Base Date: Thu, 12 Sep 2024 15:20:12 +0330 Subject: [PATCH] delete output and error when code is empty --- script/script.js | 3 +++ 1 file changed, 3 insertions(+) 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",