Fixed error in bibsearch.js
This commit is contained in:
parent
49ada3eac1
commit
8ffd34c9b4
|
|
@ -8,6 +8,9 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
// highlight-search-term
|
// highlight-search-term
|
||||||
if (CSS.highlights) {
|
if (CSS.highlights) {
|
||||||
const nonMatchingElements = highlightSearchTerm({ search: searchTerm, selector: ".bibliography > li" });
|
const nonMatchingElements = highlightSearchTerm({ search: searchTerm, selector: ".bibliography > li" });
|
||||||
|
if (nonMatchingElements == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
nonMatchingElements.forEach((element) => {
|
nonMatchingElements.forEach((element) => {
|
||||||
element.classList.add("unloaded");
|
element.classList.add("unloaded");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue