Skip to content

Commit eb1141c

Browse files
committed
Fix Content#onAltRight when no link is found
1 parent 27d7c05 commit eb1141c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎assets/javascripts/views/content/content.coffee‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class app.views.Content extends app.View
153153

154154
onAltRight: (event) =>
155155
unless document.activeElement and $.hasChild @el, document.activeElement
156-
@findByTag('a').focus()
156+
@findByTag('a')?.focus()
157157
$.stopEvent(event)
158158

159159
findTargetByHash: (hash) ->

0 commit comments

Comments
 (0)