Fix JS bug in FAQ

This commit is contained in:
Olivier Lacan 2017-06-21 14:24:03 +01:00
parent 802fbcfea6
commit dc6833e911

View File

@ -21,7 +21,7 @@ document.addEventListener("DOMContentLoaded", function(){
paragraphs = [];
paragraphs.push(lastParagraph);
while (lastParagraph.nextElementSibling.tagName == "P") {
while (lastParagraph.nextElementSibling && lastParagraph.nextElementSibling.tagName == "P") {
lastParagraph = lastParagraph.nextElementSibling;
paragraphs.push(lastParagraph)
}