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

Commit

Permalink
feat(save): add save code function
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Sep 11, 2024
1 parent 835487a commit 34d7d1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ const in_login = () => {
console.log("loggined");
}

const save_code = () => {
console.log("saved");
}

// Events
elm_execute.addEventListener('click', () => {
runSalam(true);
Expand Down Expand Up @@ -333,7 +337,7 @@ elm_save.addEventListener("click", () => {

xhr.onload = function () {
if (JSON.parse(xhr.response).status === true) {

save_code()
} else {
get_login()
}
Expand Down

0 comments on commit 34d7d1a

Please sign in to comment.