web/omnibox: disable input area when processing & reduce timeout

also fixed a typo that broke key spamming protection
This commit is contained in:
wukko
2024-07-26 14:07:23 +06:00
parent f8d06cf18b
commit 49973eceb1
2 changed files with 7 additions and 2 deletions

View File

@@ -54,7 +54,7 @@
// transition back to idle after some period of time.
const final: DownloadButtonState[] = ['done', 'error'];
if (final.includes(state)) {
setTimeout(() => changeDownloadButton("idle"), 2500);
setTimeout(() => changeDownloadButton("idle"), 1500);
}
};