fix: ignore fetch node info error

zio/stable
三咲智子 Kevin Deng 2023-01-15 18:11:19 +08:00
parent e7ccd00ad3
commit 1a4fd19720
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ export async function loginTo(masto: ElkMasto, user: Overwrite<UserLogin, { acco
const url = `https://${user.server}`
fetch(`${url}/nodeinfo/2.0`).then(r => r.json()).then((info) => {
nodes.value[user.server] = info
})
}).catch(() => undefined)
if (!user?.token) {
publicServer.value = user.server