From 2ed990d02a4b2663d96acf8f81dfbde7eb19bd54 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 19 Apr 2015 08:15:49 +0100 Subject: Activate vomnibar in window.top; fix logic error. --- content_scripts/vimium_frontend.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ] -- cgit v1.2.3