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
|
||||
if (CSS.highlights) {
|
||||
const nonMatchingElements = highlightSearchTerm({ search: searchTerm, selector: ".bibliography > li" });
|
||||
if (nonMatchingElements == null) {
|
||||
return;
|
||||
}
|
||||
nonMatchingElements.forEach((element) => {
|
||||
element.classList.add("unloaded");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue