aboutsummaryrefslogtreecommitdiff
path: root/src/background/histories.js
diff options
context:
space:
mode:
authorKostyantyn Leschenko <settlerko@gmail.com>2017-11-20 16:24:25 +0200
committerKostyantyn Leschenko <settlerko@gmail.com>2017-11-20 16:24:25 +0200
commit05c7a64b6d41a87c92332556e80fbaa75f12d761 (patch)
treea0c7c48c2794bf4eec9f4e1c53904d2104c4089c /src/background/histories.js
parent507c5b4f78aee09b45182f2b2650c61b11b68950 (diff)
Fix history completion to show most frequent results first.
Diffstat (limited to 'src/background/histories.js')
-rw-r--r--src/background/histories.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/background/histories.js b/src/background/histories.js
index 6b6e4c6..a7d3d47 100644
--- a/src/background/histories.js
+++ b/src/background/histories.js
@@ -76,7 +76,6 @@ const getCompletions = (keyword) => {
.sort((x, y) => x[0].visitCount < y[0].visitCount)
.slice(0, 10)
.map(item => item[0])
- .sort((x, y) => x.url > y.url)
)[0];
});
};