mirror of
https://github.com/nextcloud/integration_moodle.git
synced 2025-12-17 21:02:05 +01:00
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:
parent
bd989d4968
commit
5967a90b34
1 changed files with 2 additions and 6 deletions
|
|
@ -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)()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue