summaryrefslogtreecommitdiffstats
path: root/assets/js/search.js
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-09-25 16:33:33 +0200
committerGitHub <noreply@github.com>2022-09-25 16:33:33 +0200
commit7405e7466b41144cbf67d044bcbe887f21c113dd (patch)
treeb207cb84064f826853e676334ddec29d19264c69 /assets/js/search.js
parent29c6c7d7b7fc0532983228f6fb88c301535939f6 (diff)
parentd8b6fca913386e8a11b470aab19c48bf54d9ab86 (diff)
downloadgohugo-theme-ed-7405e7466b41144cbf67d044bcbe887f21c113dd.tar.gz
Merge pull request #19 from sergeyklay/bump-hugo
Release v0.6.0
Diffstat (limited to 'assets/js/search.js')
-rw-r--r--assets/js/search.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/search.js b/assets/js/search.js
index c8a8ed8..7818f50 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -332,7 +332,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
searchForm.addEventListener('submit', e => e.preventDefault());
- searchInput.addEventListener('keyup', (e) => {
+ searchInput.addEventListener('keyup', e => {
e.preventDefault();
const query = document.getElementById('search')
.value
@@ -341,7 +341,7 @@ document.addEventListener('DOMContentLoaded', () => {
handleSearchQuery(query);
});
- searchInput.addEventListener('input', (e) => {
+ searchInput.addEventListener('input', e => {
if (!e.currentTarget.value) {
hideSearchResults();
}