Skip to content

Commit

Permalink
Simplify document title generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nb committed Apr 17, 2013
1 parent 39739c2 commit 10b54c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions js/liveblog.js
Expand Up @@ -109,12 +109,8 @@ window.liveblog = {};
},
render: function() {
var entries_in_queue = liveblog.queue.length,
count_string;
if ( entries_in_queue ) {
document.title = '(' + entries_in_queue + ') ' + this.originalTitle;
} else {
document.title = this.originalTitle;
}
count_string = entries_in_queue? '(' + entries_in_queue + ') ' : '';
document.title = count_string + this.originalTitle;
}
});

Expand Down

0 comments on commit 10b54c6

Please sign in to comment.