Commit 6c787e0b authored by Christopher Fullarton's avatar Christopher Fullarton

Catches error while creating the privateKey initially if the database connection is closed

parent bf5293cf
Pipeline #33845 passed with stages
in 15 minutes and 1 second
......@@ -35,7 +35,7 @@ export class AppDb extends Dexie {
type: StorageKey.PrivateKey,
};
sessionStorage.setItem(StorageKey.PrivateKey, privateKey.value);
this.Config.put(privateKey).then(() => this.initialized.next());
this.Config.put(privateKey).then(() => this.initialized.next()).catch(() => {});
}).catch(() => {});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment