mirror of
https://github.com/olivierlacan/keep-a-changelog.git
synced 2025-07-31 01:34:18 +02:00
Fix JS bug in FAQ
This commit is contained in:
parent
802fbcfea6
commit
dc6833e911
@ -21,7 +21,7 @@ document.addEventListener("DOMContentLoaded", function(){
|
|||||||
paragraphs = [];
|
paragraphs = [];
|
||||||
paragraphs.push(lastParagraph);
|
paragraphs.push(lastParagraph);
|
||||||
|
|
||||||
while (lastParagraph.nextElementSibling.tagName == "P") {
|
while (lastParagraph.nextElementSibling && lastParagraph.nextElementSibling.tagName == "P") {
|
||||||
lastParagraph = lastParagraph.nextElementSibling;
|
lastParagraph = lastParagraph.nextElementSibling;
|
||||||
paragraphs.push(lastParagraph)
|
paragraphs.push(lastParagraph)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user