Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #4 from chrisvanpatten/patch-1
Browse files Browse the repository at this point in the history
Support 280 character tweets
  • Loading branch information
jmduke committed Feb 5, 2018
2 parents 8b37cfd + 732d7fc commit 1e368d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jquery.tweetable.js
Expand Up @@ -76,9 +76,9 @@
if (tweetText == "" || tweetText === undefined)
var tweetText = $e.text();

// Let's go ahead and be a stickler about enforcing that 140-char limit.
if (tweetText.length > 140) {
console.error("That's, like, more than 140 characters. Do you even *get* Twitter?")
// Let's go ahead and be a stickler about enforcing that 280-char limit.
if (tweetText.length > 280) {
console.error("That's, like, more than 280 characters. Do you even *get* Twitter?")
return $e;
}

Expand Down

0 comments on commit 1e368d0

Please sign in to comment.