Browse Source

Some small cleanup. Tried Plugin and have abandoned.

experimental_plugin
Matthew Aaron Raymer 2 years ago
parent
commit
05e969fbc4
  1. 2
      src/router/index.ts
  2. 2
      src/views/AccountViewView.vue

2
src/router/index.ts

@ -115,7 +115,7 @@ router.beforeEach(async (to) => {
const isPublic = publicPages.includes(to.path); const isPublic = publicPages.includes(to.path);
const appStore = useAppStore(); const appStore = useAppStore();
let return_path = "/start"; let return_path = "/start";
console.log(isPublic);
if (isPublic) { if (isPublic) {
switch (appStore.condition) { switch (appStore.condition) {
case "uninitialized": case "uninitialized":

2
src/views/AccountViewView.vue

@ -228,7 +228,7 @@ export default class AccountViewView extends Vue {
const num_accounts = await db.accounts.count(); const num_accounts = await db.accounts.count();
if (num_accounts === 0) { if (num_accounts === 0) {
console.log("..."); console.log("...");
await db._allTables.accounts.add({ await db.accounts.add({
publicKey: newId.keys[0].publicKeyHex, publicKey: newId.keys[0].publicKeyHex,
mnemonic: this.mnemonic, mnemonic: this.mnemonic,
identity: JSON.stringify(newId), identity: JSON.stringify(newId),

Loading…
Cancel
Save