aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/link_hints.coffee
diff options
context:
space:
mode:
authorStephen Blott2017-12-18 13:03:54 +0000
committerStephen Blott2017-12-18 13:03:54 +0000
commitd9b6d5e18839d1af509d859af5faed880f43fe1e (patch)
treefe5c038e896636b0a3c6b9df48ee8626a2efd690 /content_scripts/link_hints.coffee
parentab8783f1e3a60cb806f982d9b1616293a0f6613d (diff)
downloadvimium-d9b6d5e18839d1af509d859af5faed880f43fe1e.tar.bz2
Do not use vimiumOnClickAttributeName variable...
... use literals instead. For some reason, on Firefox, using `vimiumOnClickAttributeName` was causing link hints to fail silently (on Facebook). It's not at all clear why this was happening. Simply repeating the literal fixes the issue. Fixes #2879.
Diffstat (limited to 'content_scripts/link_hints.coffee')
-rw-r--r--content_scripts/link_hints.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index ba9ada38..44f7a5f5 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -707,7 +707,7 @@ LocalHints =
reason = "Open."
# Detect elements with "click" listeners installed with `addEventListener()`.
- isClickable ||= element.hasAttribute vimiumOnClickAttributeName
+ isClickable ||= element.hasAttribute "_vimium-has-onclick-listener"
# An element with a class name containing the text "button" might be clickable. However, real clickables
# are often wrapped in elements with such class names. So, when we find clickables based only on their