shorten links while tweeting, ref #34

This commit is contained in:
Cotton Hou
2014-03-15 01:13:21 +08:00
parent c6d4e4f29f
commit 887c6b4cfe
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -156,6 +156,7 @@ HTMLActuator.prototype.scoreTweetButton = function () {
tweet.classList.add("twitter-share-button");
tweet.setAttribute("href", "https://twitter.com/share");
tweet.setAttribute("data-via", "gabrielecirulli");
tweet.setAttribute("data-url", "http://git.io/2048");
tweet.textContent = "Tweet";
var text = "I scored " + this.score + " points at 2048, a game where you " +