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

Commit

Permalink
rename to lsug
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Sep 12, 2024
1 parent f5f19ad commit fcecdc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<a href='/?code=${obj.data.url}'>مشاهده</a>`,
html: `<a href='/?code=${obj.data.slug}'>مشاهده</a>`,
});
} else {
Swal.fire({
Expand Down

0 comments on commit fcecdc8

Please sign in to comment.