1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-04 14:22:50 +01:00

delay final bootstrap steps to make sure all init

This commit is contained in:
Kyle Spearrin 2018-01-19 11:52:05 -05:00
parent 8795edad82
commit 755bac0989

View File

@ -176,10 +176,16 @@ export default class MainBackground {
await this.windowsBackground.init(); await this.windowsBackground.init();
} }
await this.environmentService.setUrlsFromStorage(); return new Promise((resolve) => {
await this.setIcon(); setTimeout(async () => {
this.cleanupLoginsToAdd(); await this.environmentService.setUrlsFromStorage();
await this.fullSync(true); await this.setIcon();
this.cleanupLoginsToAdd();
await this.fullSync(true);
resolve();
}, 500);
});
} }
async setIcon() { async setIcon() {