mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
Consider Higher StateVersion "ready" (#8255)
This commit is contained in:
parent
f90de62adc
commit
a803b67f4f
@ -103,8 +103,12 @@ export async function waitForMigrations(
|
|||||||
const isReady = async () => {
|
const isReady = async () => {
|
||||||
const version = await currentVersion(storageService, logService);
|
const version = await currentVersion(storageService, logService);
|
||||||
// The saved version is what we consider the latest
|
// The saved version is what we consider the latest
|
||||||
// migrations should be complete
|
// migrations should be complete, the state version
|
||||||
return version === CURRENT_VERSION;
|
// shouldn't become larger than `CURRENT_VERSION` in
|
||||||
|
// any normal usage of the application but it is common
|
||||||
|
// enough in dev scenarios where we want to consider that
|
||||||
|
// ready as well and return true in that scenario.
|
||||||
|
return version >= CURRENT_VERSION;
|
||||||
};
|
};
|
||||||
|
|
||||||
const wait = async (time: number) => {
|
const wait = async (time: number) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user