Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
delete output and error when code is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Sep 12, 2024
1 parent 5846853 commit 50825ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 50825ab

Please sign in to comment.