refs #9 stop forcing https because we don't use oauth here

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Julien Veyssier 2020-11-06 15:28:02 +01:00
parent bd989d4968
commit 5967a90b34
No known key found for this signature in database
GPG key ID: 4141FEE162030638

View file

@ -167,12 +167,8 @@ export default {
},
onInput() {
delay(() => {
if (!this.state.url.startsWith('https://')) {
if (this.state.url.startsWith('http://')) {
this.state.url = this.state.url.replace('http://', 'https://')
} else {
this.state.url = 'https://' + this.state.url
}
if (!this.state.url.startsWith('https://') && !this.state.url.startsWith('http://')) {
this.state.url = 'https://' + this.state.url.replace(/^[a-zA-Z]*:\/\//, '')
}
this.saveOptions({ url: this.state.url })
}, 2000)()