aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_page.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html
index f220d76c..e248043c 100644
--- a/background_page.html
+++ b/background_page.html
@@ -332,7 +332,9 @@
chrome.history.onVisited.addListener(function(item) {
if (cachedHistory === null) return;
- cachedHistory.push(item);
+ // only cache newly visited sites
+ if (item.visitCount === 1)
+ cachedHistory.push(item);
});
function getHistory(args, port) {