diff options
| author | Niklas Baumstark | 2012-01-25 00:47:39 +0100 |
|---|---|---|
| committer | Niklas Baumstark | 2012-04-10 23:57:20 +0200 |
| commit | c397fffc94f563f1475f37c90eefa154ac78a6e0 (patch) | |
| tree | 65c5eaee7bc5b6e1b89800d58fb4852a5a90b6a9 /background_page.html | |
| parent | b226ddf11348660dc8e9f39dcf7346944082ff67 (diff) | |
| download | vimium-c397fffc94f563f1475f37c90eefa154ac78a6e0.tar.bz2 | |
prevent duplicate history items
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 4 |
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) { |
