mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 09:08:16 +08:00
add manage
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user