aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vomnibar.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-10 12:41:26 +0100
committerStephen Blott2016-04-10 12:44:12 +0100
commit6e12e005a4261711583571be23018481a4a23230 (patch)
treef67eb49831c8947f29e7f4a885eb0299bd1b70a9 /content_scripts/vomnibar.coffee
parentc5d0ed09b8ed5c0351e11f985ceeae244f0f0caa (diff)
downloadvimium-6e12e005a4261711583571be23018481a4a23230.tar.bz2
Fix Vomnibar initialization issue.
On a slow loading page, as the page is loading, hit `o` repeatedly. Eventually, Vimium hangs. We seem to have had this problem for quite some time (e.g. it's in 1.54). This fixes the problem by ensuring that the Vomnibar is initialized before launching it. Also fix the same issue for the help dialog.
Diffstat (limited to 'content_scripts/vomnibar.coffee')
-rw-r--r--content_scripts/vomnibar.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index a19a9b70..c23a4e6f 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -64,7 +64,8 @@ Vomnibar =
# newTab - Optional, boolean. Whether to open the result in a new tab.
open: (sourceFrameId, options) ->
@init()
- @vomnibarUI.activate extend options, { sourceFrameId }
+ if @vomnibarUI?.uiComponentIsReady
+ @vomnibarUI.activate extend options, { sourceFrameId }
root = exports ? window
root.Vomnibar = Vomnibar