fix #1463: copying the original url instead of adding https:

This commit is contained in:
antelle 2020-04-23 18:30:17 +02:00
parent 8d2640d99d
commit d6aab0c470
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
2 changed files with 4 additions and 3 deletions

View File

@ -22,8 +22,8 @@ class FieldViewUrl extends FieldViewText {
}
fixUrl(url) {
const proto = new URL(url, 'dummy://').protocol;
if (proto === 'dummy:') {
const proto = new URL(url, 'ws://x').protocol;
if (proto === 'ws:') {
return 'https://' + url;
}
if (!AllowedProtocols.includes(proto)) {
@ -37,7 +37,7 @@ class FieldViewUrl extends FieldViewText {
}
getTextValue() {
return this.fixUrl(this.value);
return this.value;
}
}

View File

@ -3,6 +3,7 @@ Release notes
##### v1.15.0 (WIP)
`+` #557: Argon2 speed improvements in desktop apps
`+` #1400: auto-apply tag when creating new entry in tag view
`-` fix #1463: copying the original url instead of adding https:
##### v1.14.0 (2020-04-18)
`+` using OAuth authorization code grant for all storage providers