From be0018d1a0482e2bc7a4d4607fbdddcc88610203 Mon Sep 17 00:00:00 2001 From: Ingrid Budau Date: Sun, 16 Jul 2023 09:51:05 +0200 Subject: [PATCH] Access 'debounce' after initialization --- qutebrowser/html/settings.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/html/settings.html b/qutebrowser/html/settings.html index f59fd8cfe..2211ef457 100644 --- a/qutebrowser/html/settings.html +++ b/qutebrowser/html/settings.html @@ -11,8 +11,6 @@ var cset = function(option, value) { xhr.send(); } -const search = debounce(() => searchOption()) - // Create a delay while the user types const debounce = (func, timeout=200) => { let timer; @@ -22,6 +20,8 @@ const debounce = (func, timeout=200) => { } } +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.*/