switch the encryption secret from localStorage to IndexedDB (because localStorage gets lost so often)
This commit is contained in:
@@ -92,8 +92,11 @@ import { Component, Vue } from "vue-facing-decorator";
|
||||
import { Router } from "vue-router";
|
||||
|
||||
import { AppString, PASSKEYS_ENABLED } from "@/constants/app";
|
||||
import { accountsDB, retrieveSettingsForActiveAccount } from "@/db/index";
|
||||
import { registerSaveAndActivatePasskey } from "@/libs/util";
|
||||
import { retrieveSettingsForActiveAccount } from "@/db/index";
|
||||
import {
|
||||
registerSaveAndActivatePasskey,
|
||||
retrieveAccountCount,
|
||||
} from "@/libs/util";
|
||||
|
||||
@Component({
|
||||
components: {},
|
||||
@@ -108,8 +111,7 @@ export default class StartView extends Vue {
|
||||
const settings = await retrieveSettingsForActiveAccount();
|
||||
this.givenName = settings.firstName || "";
|
||||
|
||||
await accountsDB.open();
|
||||
this.numAccounts = await accountsDB.accounts.count();
|
||||
this.numAccounts = await retrieveAccountCount();
|
||||
}
|
||||
|
||||
public onClickNewSeed() {
|
||||
|
||||
Reference in New Issue
Block a user