shorten links while tweeting, plus to ensure original counts

This commit is contained in:
Cotton Hou
2014-03-15 06:39:45 +08:00
parent af61d052cb
commit f57c8b052b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -156,6 +156,8 @@ 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.setAttribute("data-counturl", "http://gabrielecirulli.github.io/2048/");
tweet.textContent = "Tweet";
var text = "I scored " + this.score + " points at 2048, a game where you " +