Fixed #476: invitation code not prefilled in form when accessing invitation link

This commit is contained in:
Eliot Berriot 2018-08-11 14:20:08 +02:00
parent 1c5268b84e
commit 420e778eb6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
5 changed files with 19 additions and 10 deletions

View file

@ -165,11 +165,7 @@ export default {
messages: state => state.ui.messages
}),
suggestedInstances () {
let rootUrl = (
window.location.protocol + '//' + window.location.hostname +
(window.location.port ? ':' + window.location.port : '')
)
let instances = [rootUrl, 'https://demo.funkwhale.audio']
let instances = [this.$store.getters['instance/defaultUrl'](), 'https://demo.funkwhale.audio']
return instances
},
version () {