Merge pull request #221 from kleschenko/fixed_completion

Fix history completion to show most frequent results first.
jh-changes
Shin'ya Ueoka 7 years ago committed by GitHub
commit a133ee3d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/background/histories.js

@ -76,7 +76,6 @@ const getCompletions = (keyword) => {
.sort((x, y) => x[0].visitCount < y[0].visitCount) .sort((x, y) => x[0].visitCount < y[0].visitCount)
.slice(0, 10) .slice(0, 10)
.map(item => item[0]) .map(item => item[0])
.sort((x, y) => x.url > y.url)
)[0]; )[0];
}); });
}; };