From fcecdc8fa91d57445ed93ded1bf174993046fe67 Mon Sep 17 00:00:00 2001 From: Max Base Date: Thu, 12 Sep 2024 15:32:10 +0330 Subject: [PATCH] rename to lsug --- script/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/script.js b/script/script.js index 5578ef0..f5c0e20 100644 --- a/script/script.js +++ b/script/script.js @@ -322,11 +322,11 @@ const save_code = () => { const xhr = new XMLHttpRequest(); xhr.onload = () => { const obj = JSON.parse(xhr.response); - if (obj.status === true) { + if (obj.status === true && obj.data && obj.data.slug) { Swal.fire({ icon: "success", title: "کد شما ذخیره شد.", - html: `مشاهده`, + html: `مشاهده`, }); } else { Swal.fire({