diff options
| author | Stephen Blott | 2015-04-22 13:18:23 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-04-22 13:18:23 +0100 |
| commit | e7fa65430188a0b9e0b1d7f1050f452932190b6a (patch) | |
| tree | b00e2abb018919a04eb2e17f38dac38c59fd39a1 | |
| parent | caca2b6e81ba6fcad9cdc406c8cde15084db7539 (diff) | |
| download | vimium-e7fa65430188a0b9e0b1d7f1050f452932190b6a.tar.bz2 | |
Also filter for HREF in incognito mode.
| -rw-r--r-- | content_scripts/link_hints.coffee | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 650080d4..6bc37aaf 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -57,8 +57,9 @@ LinkHints = @isActive = true elements = @getVisibleClickableElements() - # For COPY_LINK_URL mode, we filter out those elements which don't have an HREF to copy. - elements = (el for el in elements when el.element.href?) if mode == COPY_LINK_URL + # For these modes, we filter out those elements which don't have an HREF (since there's nothing we can do + # with them). + elements = (el for el in elements when el.element.href?) if mode in [ COPY_LINK_URL, OPEN_INCOGNITO ] hintMarkers = (@createMarkerFor(el) for el in elements) @getMarkerMatcher().fillInMarkers(hintMarkers) |
