From 58468535abe0c7ccfff4d9aeb38b30963c43ed54 Mon Sep 17 00:00:00 2001 From: Max Base Date: Thu, 12 Sep 2024 15:18:42 +0330 Subject: [PATCH] dont show sweet --- script/script.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/script/script.js b/script/script.js index 5de7dc0..d177792 100644 --- a/script/script.js +++ b/script/script.js @@ -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; }