aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorStephen Blott2015-05-03 17:22:20 +0100
committerStephen Blott2015-05-03 17:22:20 +0100
commit776f617ece5d333fe70df903982a18d65fc2776a (patch)
tree8d4fd8e22d128629df9a1998fc1f716c08b6791e /pages
parent7d59e948da154203722b442c477b452f7a393161 (diff)
downloadvimium-776f617ece5d333fe70df903982a18d65fc2776a.tar.bz2
Search completion; make completion lookup asynchronous.
Diffstat (limited to 'pages')
-rw-r--r--pages/vomnibar.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee
index 2076fea6..3fb63177 100644
--- a/pages/vomnibar.coffee
+++ b/pages/vomnibar.coffee
@@ -239,7 +239,7 @@ class BackgroundCompleter
id = BackgroundCompleter.messageId += 1
@filterPort.onMessage.addListener handler = (msg) =>
if msg.id == id
- @filterPort.onMessage.removeListener handler
+ @filterPort.onMessage.removeListener handler unless msg.keepAlive and id == BackgroundCompleter.messageId
if id == BackgroundCompleter.messageId
# The result objects coming from the background page will be of the form:
# { html: "", type: "", url: "" }