Skip to content

Commit

Permalink
Access 'debounce' after initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
twigleingrid committed Jul 16, 2023
1 parent 89b8d54 commit be0018d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qutebrowser/html/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
xhr.send();
}

const search = debounce(() => searchOption())

// Create a delay while the user types
const debounce = (func, timeout=200) => {
let timer;
Expand All @@ -22,6 +20,8 @@
}
}

const search = debounce(() => searchOption())

/* First sort the options' names back into alphabetical order. Make them invisible.
Filter first by name, then by short description and finally by long description.
Display them in this order.*/
Expand Down

0 comments on commit be0018d

Please sign in to comment.