fix: ignore fetch node info error

This commit is contained in:
三咲智子 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

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