Skip to content

Commit

Permalink
chore: nit fix
Browse files Browse the repository at this point in the history
Signed-off-by: thisisobate <[email protected]>
  • Loading branch information
thisisobate committed Jun 13, 2024
1 parent a34a756 commit de27239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
checkbox.addEventListener("change", function (event) {
if (checkbox.checked) {
const inputValue = event.target.value.split(" ");
// for queries with spacing, use the first word
// for single queries with spacing, use the first word
const inputQuery = inputValue[0];
searchQueue.push(inputQuery);
query = searchQueue.join(" ");
Expand All @@ -116,7 +116,7 @@

if (!checkbox.checked){
const inputValue = event.target.value.split(" ");
// for queries with spacing, use the first word
// for single queries with spacing, use the first word
const inputQuery = inputValue[0];
searchQueue = searchQueue.filter(
(word) => word != inputQuery
Expand Down

0 comments on commit de27239

Please sign in to comment.