diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 6585c12..8420007 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -734,7 +734,7 @@ function create_comment_elements(commentData, onCommentCreated) { * @param {?object} $span jQuery object of unread count */ function update_right_panel_unread_count($span) { - var unread_count = $('#comments').children('div.post.unread').length; + var unread_count = $('#comments').find('div.post.unread').length; if (typeof $span === 'undefined') { $span = $('#pp-unread-count');