mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix autoconnect for set url.
This commit is contained in:
parent
2ee592baf3
commit
645c4aa184
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user