aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-04 10:20:58 +0100
committerStephen Blott2016-04-04 10:21:00 +0100
commitee3dc128ff48b07abf2eea28a5384cbbaf6c52ec (patch)
treecfc15e5ba72e4b22e8655a55d9b460c2e18f72db /background_scripts/main.coffee
parent5e25e67e762818f499ee24278c9512b21a191c3e (diff)
downloadvimium-ee3dc128ff48b07abf2eea28a5384cbbaf6c52ec.tar.bz2
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.
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee5
1 files changed, 4 insertions, 1 deletions
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 =