Skip to content

Commit

Permalink
Small edits for text that shows in result
Browse files Browse the repository at this point in the history
  • Loading branch information
alkhafaji4 committed Oct 20, 2024
1 parent c291914 commit e3abecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ if (document.getElementById('search-input')) {
suggestionsList.innerHTML = ''; // Clear suggestions
};

// Add suggestion to the list
// Add suggestion list
suggestionsList.appendChild(suggestion);
});
}
}

// Check if we're on results.html to fetch and display the full search results
// Check if on results.html to fetch and display the full search results
if (window.location.pathname.includes('results.html')) {
const urlParams = new URLSearchParams(window.location.search);
const searchQuery = urlParams.get('q'); // Get the 'q' parameter from the URL
Expand Down

0 comments on commit e3abecc

Please sign in to comment.