Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mica committed Feb 27, 2024
1 parent 86d04d2 commit c4df1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ document.querySelector('form div').innerText = 'for multiple searches, separate
document.querySelector('footer').addEventListener('click', () => window.open('https://github.com/mica/multisearch.app'));
if (q) {
document.getElementById('search').value = q;
q = q.split(',').filter(e => {return e !== ''}).map(e => e.trim());
q = q.split(',').map(e => e.trim()).filter(e => {return e !== ''});
if (q.length > 1) {
const span = document.createElement('span');
span.classList.add('hidden');
Expand Down

0 comments on commit c4df1f7

Please sign in to comment.