Skip to content

Commit

Permalink
fix: Don’t initialize search w/o input available
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Nov 15, 2018
1 parent 5cc33d0 commit a499fd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/opf.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
if (el) { el.addEventListener('click', collapsibleDocsNav.toggle); }
}

initSearchWidget(topMenuEl, triggerEl, inputEl);
if (triggerEl !== null && inputEl !== null && topMenuEl !== null) {
initSearchWidget(topMenuEl, triggerEl, inputEl);
}

}());

0 comments on commit a499fd4

Please sign in to comment.