Skip to content
Permalink
Browse files

remove hardcoded email address

  • Loading branch information...
bui committed Sep 15, 2019
1 parent 66612d2 commit 41a64965a7560719382dd73db3b0448edab694ab
Showing with 10 additions and 1 deletion.
  1. +10 −1 public/src/js/about.js
@@ -31,7 +31,16 @@

var versionUrl = gameConfig._version.url
this.getLink(this.linkIssues).href = versionUrl + "issues"


var contactEmail = gameConfig.email
if (typeof contactEmail === 'string') {
this.linkEmail.setAttribute("alt", contactEmail)
this.getLink(this.linkEmail).href = "mailto:" + contactEmail
this.getLink(this.linkEmail).text = contactEmail

This comment has been minimized.

Copy link
@LoveEevee

LoveEevee Sep 15, 2019

Collaborator

.innerText*

} else {
this.linkEmail.style.display = "none"
}

pageEvents.add(this.linkIssues, ["click", "touchend"], this.linkButton.bind(this))
pageEvents.add(this.linkEmail, ["click", "touchend"], this.linkButton.bind(this))
pageEvents.add(this.endButton, ["mousedown", "touchstart"], this.onEnd.bind(this))

0 comments on commit 41a6496

Please sign in to comment.
You can’t perform that action at this time.