Skip to content

Commit b021a48

Browse files
committed
added check for twitter container in twitter.js
1 parent a632295 commit b021a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/javascripts/twitter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ function prettyDate(time){
6767
}
6868

6969
function getTwitterStatus(twitter_name){
70+
var container = $(twitter_container);
71+
if(!container) return;
7072
var tweet_cookie = 'tweets_by_' + twitter_name + tweet_count;
71-
$(twitter_container).set('html', 'Fetching tweets...');
73+
container.set('html', 'Fetching tweets...');
7274
if(!Cookie.read(tweet_cookie)) {
7375
var myTwitterGitter = new TwitterGitter(twitter_name,{
7476
count: ((show_replies) ? tweet_count : 15 + tweet_count),

0 commit comments

Comments
 (0)