mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-05 18:47:52 +01:00
delay search if indexing
This commit is contained in:
parent
f406a01900
commit
15cf7b433a
@ -92,6 +92,13 @@ export class SearchService implements SearchServiceAbstraction {
|
|||||||
return ciphers;
|
return ciphers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.indexing) {
|
||||||
|
await new Promise((r) => setTimeout(r, 250));
|
||||||
|
if (this.indexing) {
|
||||||
|
await new Promise((r) => setTimeout(r, 500));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const index = this.getIndexForSearch();
|
const index = this.getIndexForSearch();
|
||||||
if (index == null) {
|
if (index == null) {
|
||||||
// Fall back to basic search if index is not available
|
// Fall back to basic search if index is not available
|
||||||
|
Loading…
Reference in New Issue
Block a user