aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-03 09:45:22 +0100
committerStephen Blott2016-04-04 06:15:52 +0100
commitc99af1b7d1d559e54a8849a617920f946ca9bd0b (patch)
treec3300a865ff8c4d3352632977685f09ce4c848b1 /background_scripts/main.coffee
parent7bdbebf7b50c305c01152c02e9bebf6aa00b3f87 (diff)
downloadvimium-c99af1b7d1d559e54a8849a617920f946ca9bd0b.tar.bz2
Handle requireHref for link hints locally.
The check that an element as an href (for certain hint modes) can be done earlier, thereby avoid the need to pass that information between frames.
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 68e108fd..b9840757 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -378,7 +378,7 @@ HintCoordinator =
console.log "prepareToActivateMode", tabId, "[#{frameIdsForTab[tabId].length}]" if @debug
@tabState[tabId] = {frameIds: frameIdsForTab[tabId][..], hintDescriptors: [], originatingFrameId, modeIndex}
@tabState[tabId].ports = extend {}, portsForTab[tabId]
- @sendMessage "getHintDescriptors", tabId
+ @sendMessage "getHintDescriptors", tabId, {modeIndex}
# Receive hint descriptors from all frames and activate link-hints mode when we have them all.
postHintDescriptors: (tabId, frameId, {hintDescriptors}) ->