vomebook commited on
Commit
a265c3e
·
verified ·
1 Parent(s): 6c4992c

Upload app.js

Browse files
Files changed (1) hide show
  1. static/app.js +2 -2
static/app.js CHANGED
@@ -46,7 +46,7 @@ const REQUEST_TIMEOUT_MS = 12000;
46
  const KEEPALIVE_INTERVAL_MS = 45 * 1000;
47
  const KEEPALIVE_MIN_GAP_MS = 30 * 1000;
48
  const MAX_HIGHLIGHTS_PER_TEXT = 16;
49
- const SEARCH_DEBOUNCE_MS = 250;
50
  const SNIPPET_CONCURRENCY = 4;
51
  const folderContentsPending = new Map();
52
  const folderTreePending = new Map();
@@ -1813,10 +1813,10 @@ function attachEvents() {
1813
  STATE.searchSequence += 1;
1814
  STATE.query = DOM.searchInput.value.trim();
1815
  STATE.page = 1;
1816
- syncUrl();
1817
  const scheduledValue = DOM.searchInput.value;
1818
  timer = setTimeout(() => {
1819
  if (DOM.searchInput.value !== scheduledValue) return;
 
1820
  addHistory(STATE.query);
1821
  renderHistoryDropdown();
1822
  doSearch();
 
46
  const KEEPALIVE_INTERVAL_MS = 45 * 1000;
47
  const KEEPALIVE_MIN_GAP_MS = 30 * 1000;
48
  const MAX_HIGHLIGHTS_PER_TEXT = 16;
49
+ const SEARCH_DEBOUNCE_MS = 120;
50
  const SNIPPET_CONCURRENCY = 4;
51
  const folderContentsPending = new Map();
52
  const folderTreePending = new Map();
 
1813
  STATE.searchSequence += 1;
1814
  STATE.query = DOM.searchInput.value.trim();
1815
  STATE.page = 1;
 
1816
  const scheduledValue = DOM.searchInput.value;
1817
  timer = setTimeout(() => {
1818
  if (DOM.searchInput.value !== scheduledValue) return;
1819
+ syncUrl();
1820
  addHistory(STATE.query);
1821
  renderHistoryDropdown();
1822
  doSearch();