diff options
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 9e12d497..e959d358 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -171,7 +171,7 @@ class DomainCompleter for domain in domainCandidates recencyScore = RankingUtils.recencyScore(@domains[domain].lastVisitTime || 0) wordRelevancy = RankingUtils.wordRelevancy(queryTerms, domain, null) - score = wordRelevancy + Math.max(recencyScore, wordRelevancy) / 2 + score = (wordRelevancy + Math.max(recencyScore, wordRelevancy)) / 2 results.push([domain, score]) results.sort (a, b) -> b[1] - a[1] results |
