diff options
Diffstat (limited to 'pages/ui_component_server.coffee')
| -rw-r--r-- | pages/ui_component_server.coffee | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/pages/ui_component_server.coffee b/pages/ui_component_server.coffee index 9f72dd92..488ff0ed 100644 --- a/pages/ui_component_server.coffee +++ b/pages/ui_component_server.coffee @@ -18,11 +18,8 @@ UIComponentServer =    registerHandler: (@handleMessage) -> -  postMessage: (message) -> -    @ownerPagePort?.postMessage message - -  hide: -> -    @postMessage "hide" +  postMessage: (message) -> @ownerPagePort?.postMessage message +  hide: -> @postMessage "hide"    # We require both that the DOM is ready and that the port has been opened before the UI component is ready.    # These events can happen in either order.  We count them, and notify the content script when we've seen | 
