Fix ios landscape again, add html linebreak to mailto

This commit is contained in:
LoveEevee
2018-10-14 14:25:10 +03:00
parent 89f352bc60
commit 773684c2cb
4 changed files with 4 additions and 4 deletions

View File

@@ -120,7 +120,7 @@
var issueBody = this.issueTemplate.join("\n") + "\n\n\n\n" + diag
this.getLink(this.linkGithub).href += "?body=" + encodeURIComponent(issueBody)
this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "\r\n"))
this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "<br>\r\n"))
}
getLink(target){
return target.getElementsByTagName("a")[0]