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

Commit

Permalink
dont show sweet
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Sep 12, 2024
1 parent 0754f0d commit 5846853
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,14 @@ const runSalam = (showOutput) => {

const code = elm_code.value.toString().trim();
if (!code) {
Swal.fire({
icon: "error",
title: "کد نمیتواند خالی اجرا شود",
text: "لطفا کدی نوشته و سپس ان را اجرا کنید",
});
if (showOutput === true) {
Swal.fire({
icon: "error",
title: "کد نمیتواند خالی اجرا شود",
text: "لطفا کدی نوشته و سپس ان را اجرا کنید",
});
}

return;
}

Expand Down

0 comments on commit 5846853

Please sign in to comment.