1
0
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:
Johan Fagerberg 2017-11-02 22:53:37 +01:00 committed by GitHub
commit ddf20ecf76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);