mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-11-26 01:00:27 +02:00
Merge pull request #662 from ericcornelissen/fix-querystring-check
Fix search activation when no query is present
This commit is contained in:
commit
ddf20ecf76
@ -653,7 +653,7 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Load search query if present
|
||||
var query = getUrlParameter(queryParameter);
|
||||
if (query !== null) {
|
||||
if (query) {
|
||||
$search.classList.add('search--active');
|
||||
$searchInput.value = query;
|
||||
search(query);
|
||||
|
Loading…
Reference in New Issue
Block a user