Skip to content

Commit

Permalink
fix: enable in page scroll for footnotes (#148, #157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfrnz committed Apr 18, 2017
1 parent 6be5241 commit aef53a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/app/page/PageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define([
}
},
pageLink: function(e) {
if($(e.target).attr('href').startsWith('#')) {
if(typeof $(e.target).attr('href') !== "undefined" && $(e.target).attr('href').startsWith('#')) {
e.preventDefault()
this.$el.trigger('navLink', {
route:'page',
Expand Down

0 comments on commit aef53a7

Please sign in to comment.