Safety checks on autojoin
This commit is contained in:
parent
841d03cdec
commit
1f8db9b70e
14
src/App.vue
14
src/App.vue
|
@ -197,12 +197,14 @@ export default {
|
||||||
return this.$router.push('/signin')
|
return this.$router.push('/signin')
|
||||||
}
|
}
|
||||||
console.log('Settings', settings)
|
console.log('Settings', settings)
|
||||||
if (settings.autoJoin) {
|
if (settings.autoJoin === true || settings.autoJoin === 'true') {
|
||||||
await this.$store.dispatch('autoJoin', {
|
if (settings.autoJoinServer) {
|
||||||
server: settings.autoJoinServer,
|
this.$store.dispatch('autoJoin', {
|
||||||
password: settings.autoJoinPassword,
|
server: settings.autoJoinServer,
|
||||||
room: settings.autoJoinRoom
|
password: settings.autoJoinPassword,
|
||||||
})
|
room: settings.autoJoinRoom
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (this.$store.getters.getAutoJoin) {
|
// if (this.$store.getters.getAutoJoin) {
|
||||||
|
|
Loading…
Reference in New Issue