Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JavaScript error when search is not enabled #66

Merged
merged 1 commit into from
Jul 20, 2018
Merged

Fix JavaScript error when search is not enabled #66

merged 1 commit into from
Jul 20, 2018

Conversation

tony-ho
Copy link
Contributor

@tony-ho tony-ho commented Jul 13, 2018

Check mySearchToggle exists before calling addEventListener() to prevent error when search toggle does not exist ie. when search is not enabled.

Check `mySearchToggle` exists before calling `addEventListener()` to prevent error when search toggle does not exist.
@mmistakes
Copy link
Owner

Looks good, thanks!

@mmistakes mmistakes merged commit c5623e2 into mmistakes:master Jul 20, 2018
@tony-ho tony-ho deleted the search-toggle-fix branch July 20, 2018 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants