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
|
// save token to state
|
||||||
Vue.set(this.state.connection, 'token', token)
|
Vue.set(this.state.connection, 'token', token)
|
||||||
|
|
||||||
if (!this.autologin) return
|
// try to authenticate and connect
|
||||||
await this.authenticate()
|
if (this.autoconnect) {
|
||||||
|
try {
|
||||||
if (!this.autoconnect) return
|
await this.authenticate()
|
||||||
this.connect()
|
this.connect()
|
||||||
|
} catch {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async authenticate(token?: string) {
|
public async authenticate(token?: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user