From e7fa65430188a0b9e0b1d7f1050f452932190b6a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 22 Apr 2015 13:18:23 +0100 Subject: Also filter for HREF in incognito mode. --- content_scripts/link_hints.coffee | 5 +++-- 1 file 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) -- cgit v1.2.3