From 34d7d1af5f9fb3c3b4bddae72eb70aa7392b50d7 Mon Sep 17 00:00:00 2001 From: mohamadreza Date: Wed, 11 Sep 2024 15:39:31 +0330 Subject: [PATCH] feat(save): add save code function --- script/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/script.js b/script/script.js index 93e1b85..8b0d390 100644 --- a/script/script.js +++ b/script/script.js @@ -252,6 +252,10 @@ const in_login = () => { console.log("loggined"); } +const save_code = () => { + console.log("saved"); +} + // Events elm_execute.addEventListener('click', () => { runSalam(true); @@ -333,7 +337,7 @@ elm_save.addEventListener("click", () => { xhr.onload = function () { if (JSON.parse(xhr.response).status === true) { - + save_code() } else { get_login() }