1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

bootstrap async

This commit is contained in:
Kyle Spearrin
2017-12-05 23:37:32 -05:00
parent e90476af2b
commit 72ac90157f
2 changed files with 8 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ export default class MainBackground {
opr.sidebarAction : (window as any).chrome.sidebarAction;
}
bootstrap() {
async bootstrap() {
// Chrome APIs
if (chrome.commands) {
chrome.commands.onCommand.addListener((command: any) => {
@@ -323,11 +323,10 @@ export default class MainBackground {
}
// Bootstrap
this.environmentService.setUrlsFromStorage().then(() => {
this.setIcon();
this.cleanupLoginsToAdd();
this.fullSync(true);
});
await this.environmentService.setUrlsFromStorage();
this.setIcon();
this.cleanupLoginsToAdd();
this.fullSync(true);
}
private completeAuthRequest(details: any) {