aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/ui_component.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/ui_component.coffee')
-rw-r--r--content_scripts/ui_component.coffee6
1 files changed, 2 insertions, 4 deletions
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee
index d381cb0f..ac0bea71 100644
--- a/content_scripts/ui_component.coffee
+++ b/content_scripts/ui_component.coffee
@@ -48,11 +48,9 @@ class UIComponent
@iframeElement.contentWindow.postMessage vimiumSecret, chrome.runtime.getURL(""), [ port2 ]
setIframePort port1
- # If any other frame in the current tab receives the focus, then we hide the UI component.
- # NOTE(smblott) This is correct for the vomnibar, but might be incorrect (and need to be revisited) for
- # other UI components.
chrome.runtime.onMessage.addListener (request) =>
- @postMessage "hide" if @showing and request.name == "frameFocused" and request.focusFrameId != frameId
+ if @showing and request.name == "frameFocused" and request.focusFrameId != frameId
+ @postMessage name: "frameFocused", focusFrameId: request.focusFrameId
false # Free up the sendResponse handler.
# Posts a message (if one is provided), then calls continuation (if provided). The continuation is only