Fix error thrown when navigating to nonexistent page.

This commit is contained in:
ccd0 2019-07-17 13:56:33 -07:00
parent 31b4097999
commit 0093ebf18f

View File

@ -553,9 +553,9 @@ Index =
else
strong = $.el 'strong'
a = pagesRoot.children[pageNum - 1]
$.before a, strong
$.add strong, a
if (a = pagesRoot.children[pageNum - 1])
$.before a, strong
$.add strong, a
updateHideLabel: ->
return unless Index.hideLabel