Skip to content

Commit

Permalink
Fixed error in bibsearch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
george-gca authored Jul 13, 2024
1 parent 49ada3e commit 8ffd34c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/bibsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down

0 comments on commit 8ffd34c

Please sign in to comment.