diff options
| author | Stephen Blott | 2016-04-04 10:20:58 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-04-04 10:21:00 +0100 | 
| commit | ee3dc128ff48b07abf2eea28a5384cbbaf6c52ec (patch) | |
| tree | cfc15e5ba72e4b22e8655a55d9b460c2e18f72db /background_scripts | |
| parent | 5e25e67e762818f499ee24278c9512b21a191c3e (diff) | |
| download | vimium-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')
| -rw-r--r-- | background_scripts/main.coffee | 5 | 
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 = | 
