mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-11-10 15:22:03 +08:00
bugfix for solution #950 incorrect mailto link
This commit is contained in:
parent
6237a3691b
commit
dbabbb9385
1 changed files with 2 additions and 2 deletions
|
|
@ -329,7 +329,7 @@ export class EmailModel extends AbstractModel {
|
||||||
*/
|
*/
|
||||||
toLine(friendlyView, wrapWithLink) {
|
toLine(friendlyView, wrapWithLink) {
|
||||||
let name = this.name,
|
let name = this.name,
|
||||||
result = this.email || name,
|
result = this.email,
|
||||||
toLink = text =>
|
toLink = text =>
|
||||||
'<a href="mailto:'
|
'<a href="mailto:'
|
||||||
+ encodeHtml(result) + (name ? '?to=' + encodeURIComponent('"' + name + '" <' + result + '>') : '')
|
+ encodeHtml(result) + (name ? '?to=' + encodeURIComponent('"' + name + '" <' + result + '>') : '')
|
||||||
|
|
@ -348,7 +348,7 @@ export class EmailModel extends AbstractModel {
|
||||||
result = toLink();
|
result = toLink();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result || name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static splitEmailLine(line) {
|
static splitEmailLine(line) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue