aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee7
1 files changed, 2 insertions, 5 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 8efd1687..dc24ebb7 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -286,11 +286,8 @@ class TabRecency
if @lastVisitedTime? and currentTime - @lastVisitedTime >= @timeDelta
@cache[@lastVisited] = ++@timestamp
- @current = tabId
- @lastVisited = tabId
- # If the tab we were previously on has gone away (or never existed if this is the first tab), then make
- # this one registers as soon as it's blurred.
- @lastVisitedTime = if @lastVisitedTime? then currentTime else new Date(currentTime - @timeDelta)
+ @current = @lastVisited = tabId
+ @lastVisitedTime = currentTime
remove: (tabId) ->
if tabId == @lastVisited