fixed search suggestions on other pages than main page
This commit is contained in:
parent
f492d96563
commit
186026fa6d
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
// Wait for the DOM to load
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const searchInput = document.getElementById('search-input');
|
||||
const searchWrapper = document.querySelector('.wrapper');
|
||||
const searchWrapper = document.querySelector('.wrapper, .wrapper-results');
|
||||
const resultsWrapper = document.querySelector('.autocomplete');
|
||||
|
||||
let suggestions = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue