diff options
| author | Stephen Blott | 2015-06-04 17:22:02 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-06-04 17:22:02 +0100 | 
| commit | b5f4f1ab1f237795ed522f338dde2aa87bb35f42 (patch) | |
| tree | 77b8b0f65398d097a6ce919eb54276ec01ee0406 /background_scripts/completion_search.coffee | |
| parent | a402606774b8fe3bb04203f873804d61944553d6 (diff) | |
| download | vimium-b5f4f1ab1f237795ed522f338dde2aa87bb35f42.tar.bz2 | |
Fix issue with Google-Maps completion failing.
Diffstat (limited to 'background_scripts/completion_search.coffee')
| -rw-r--r-- | background_scripts/completion_search.coffee | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/background_scripts/completion_search.coffee b/background_scripts/completion_search.coffee index d89eb278..b26194e6 100644 --- a/background_scripts/completion_search.coffee +++ b/background_scripts/completion_search.coffee @@ -12,7 +12,7 @@ CompletionSearch =    get: (searchUrl, url, callback) ->      xhr = new XMLHttpRequest()      xhr.open "GET", url, true -    xhr.timeout = 1000 +    xhr.timeout = 2500      xhr.ontimeout = xhr.onerror = -> callback null      xhr.send() @@ -115,8 +115,8 @@ CompletionSearch =                console.log "GET", url if @debug              catch                suggestions = [] -              # We allow failures to be cached too, but remove them after just thirty minutes. -              Utils.setTimeout 30 * 60 * 1000, => @completionCache.set completionCacheKey, null +              # We allow failures to be cached too, but remove them after just thirty seconds. +              Utils.setTimeout 30 * 1000, => @completionCache.set completionCacheKey, null                console.log "fail", url if @debug              callback suggestions | 
