From 8e5a6513103db662e44a0d094f3536df6e78cdce Mon Sep 17 00:00:00 2001 From: zizifn <1803942+zizifn@users.noreply.github.com> Date: Sun, 12 Jun 2022 03:42:50 +0800 Subject: [PATCH] add manage --- html/manage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/manage.js b/html/manage.js index 8f85e6f..e5beca3 100644 --- a/html/manage.js +++ b/html/manage.js @@ -39,7 +39,7 @@ async function addAccount(key) { const jsonContent = await resp.json(); console.log(jsonContent); - if (save2Local.checked) { + if (save2Local.checked && resp.ok) { const appStr = localStorage.getItem("accounts") || '[]'; const appSet = new Set(JSON.parse(appStr)).add(key); const apps = [...appSet];