fixed search suggestions on other pages than main page

This commit is contained in:
partisan 2024-10-22 08:38:50 +02:00
parent f492d96563
commit 186026fa6d
2 changed files with 3 additions and 3 deletions

View file

@ -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 = [];