aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-04-19 08:15:49 +0100
committerStephen Blott2015-04-19 08:15:49 +0100
commit2ed990d02a4b2663d96acf8f81dfbde7eb19bd54 (patch)
treea07f0fa9b9ae125d8d61b5b8c753e9609c584c34
parent43b55018071d90adcdb4c4f2ff1b56226ae91dab (diff)
downloadvimium-2ed990d02a4b2663d96acf8f81dfbde7eb19bd54.tar.bz2
Activate vomnibar in window.top; fix logic error.
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index a75f77e2..7ffb35f1 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -275,7 +275,9 @@ unregisterFrame = ->
executePageCommand = (request) ->
# Vomnibar commands are handled in the tab's main/top frame. They are handled even if Vimium is otherwise
# disabled in the frame.
- if request.command.split(".")[0] == "Vomnibar" and DomUtils.isTopFrame()
+ console.log frameId, request
+ if request.command.split(".")[0] == "Vomnibar"
+ if DomUtils.isTopFrame()
# We pass the frameId from request. That's the frame which originated the request, so that's the frame
# which should receive the focus when the vomnibar closes.
Utils.invokeCommandString request.command, [ request.frameId ]