From ee3dc128ff48b07abf2eea28a5384cbbaf6c52ec Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 4 Apr 2016 10:20:58 +0100 Subject: Only send required link-hint properties. There's other stuff (ports, frameIds) in @tabState[tabId] that we don't need in the front end. Here, we only send the three properties which we do need. --- background_scripts/main.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'background_scripts/main.coffee') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 1d69cf3f..8b1e61ce 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -392,7 +392,10 @@ HintCoordinator = @tabState[tabId].frameIds = @tabState[tabId].frameIds.filter (fId) -> fId != frameId console.log "postHintDescriptors", tabId, frameId, "[#{@tabState[tabId].frameIds.length}]" if @debug if @tabState[tabId].frameIds.length == 0 - @sendMessage "activateMode", tabId, @tabState[tabId] + @sendMessage "activateMode", tabId, + originatingFrameId: @tabState[tabId].originatingFrameId + hintDescriptors: @tabState[tabId].hintDescriptors + modeIndex: @tabState[tabId].modeIndex # Port handler mapping portHandlers = -- cgit v1.2.3