Skip to content

Commit

Permalink
Add a check to determine if the quicksearch form is present and exit …
Browse files Browse the repository at this point in the history
…quickly if it is not. For #473.
  • Loading branch information
imcbride committed Jan 31, 2023
1 parent 7f0b45f commit 714de9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/quicksearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import { $, $$, on, hide, show } from './utils/dom';
*/
(function () {
const elem = $('#midd-main');
const quicksearch = $('#midd-quicksearch');

if (!elem) {
if (!elem || !quicksearch) {
return;
}

Expand Down

0 comments on commit 714de9a

Please sign in to comment.