mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-02-20 07:55:47 +03:00
Fix search activation when no query is present
Closes #661, as pointed out by @birjolaxew the return value by getUrlParameter() will not be null but an empty string (which is a falsy value) if no query is present, checking for truthiness should work correctly.
This commit is contained in:
parent
04d9c945cc
commit
9ed48875bf
@ -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