diff --git a/src/component/main.vue b/src/component/main.vue index feb0ef3d..c1749321 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -310,11 +310,13 @@ // save token to state Vue.set(this.state.connection, 'token', token) - if (!this.autologin) return - await this.authenticate() - - if (!this.autoconnect) return - this.connect() + // try to authenticate and connect + if (this.autoconnect) { + try { + await this.authenticate() + this.connect() + } catch {} + } } public async authenticate(token?: string) {