Skip to content

Commit a8337e9

Browse files
committed
Use Utils.isFirefox for link hints fix
1 parent e6a529e commit a8337e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content_scripts/link_hints.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# The "name" property below is a short-form name to appear in the link-hints mode's name. It's for debug only.
1212
#
1313
isMac = KeyboardUtils.platform == "Mac"
14-
simulateClickDefaultAction = true
1514
OPEN_IN_CURRENT_TAB =
1615
name: "curr-tab"
1716
indicator: "Open link in current tab"
@@ -387,6 +386,7 @@ class LinkHintsMode
387386
else
388387
clickActivator = (modifiers) -> (link) ->
389388
defaultActionsTriggered = DomUtils.simulateClick link, modifiers
389+
simulateClickDefaultAction = Utils.isFirefox()
390390
if simulateClickDefaultAction and
391391
defaultActionsTriggered[3] and link.tagName?.toLowerCase() == "a" and
392392
modifiers? and modifiers.metaKey == isMac and modifiers.ctrlKey == not isMac

0 commit comments

Comments
 (0)