aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/search_engines.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-03 17:22:20 +0100
committerStephen Blott2015-05-03 17:22:20 +0100
commit776f617ece5d333fe70df903982a18d65fc2776a (patch)
tree8d4fd8e22d128629df9a1998fc1f716c08b6791e /background_scripts/search_engines.coffee
parent7d59e948da154203722b442c477b452f7a393161 (diff)
downloadvimium-776f617ece5d333fe70df903982a18d65fc2776a.tar.bz2
Search completion; make completion lookup asynchronous.
Diffstat (limited to 'background_scripts/search_engines.coffee')
-rw-r--r--background_scripts/search_engines.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/background_scripts/search_engines.coffee b/background_scripts/search_engines.coffee
index a80c218c..abf8c86e 100644
--- a/background_scripts/search_engines.coffee
+++ b/background_scripts/search_engines.coffee
@@ -134,8 +134,7 @@ SearchEngines =
@requests[searchUrl] = xhr = new XMLHttpRequest()
xhr.open "GET", url, true
- # We set a fairly short timeout. If we block for too long, then we block *all* completers.
- xhr.timeout = 500
+ xhr.timeout = 750
xhr.ontimeout = => @cancel searchUrl, callback
xhr.onerror = => @cancel searchUrl, callback
xhr.send()