From 072ece28cdc165b0cb87f6683f5b5c327935046e Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 10 May 2016 00:49:46 +0300 Subject: [PATCH] Do not "Go to new comment" button outside of the post page. --- chrome_point_plus/js/point-plus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index e946fbf..6655630 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -64,7 +64,7 @@ function PointPlus(ppVersion) { $('body').append($side_panel); - if (options.is('option_right_panel_to_unread')) { + if (options.is('option_right_panel_to_unread') && $('#comments').length > 0) { $go_to_unread_block = $('
').attr({ id: 'pp-go-to-unread', }).click(function() {