Skip to content

Commit

Permalink
Fix bug where text graphics page would sometimes not load when no text
Browse files Browse the repository at this point in the history
  • Loading branch information
FayCross committed Jun 22, 2018
1 parent b0cfc6b commit 6108361
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -146,7 +146,9 @@
.removeClass("inline");
}

$textHolder.html(x_addLineBreaks(x_currentPageXML.childNodes[0].nodeValue));
if (x_currentPageXML.childNodes[0] != undefined) {
$textHolder.html(x_addLineBreaks(x_currentPageXML.childNodes[0].nodeValue));
}

$("#pageImg")
.one("load", function() {
Expand Down

0 comments on commit 6108361

Please sign in to comment.