1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 11:43:46 +00:00

add import-chrome-component.ts to working tree

This commit is contained in:
John Harrington
2025-11-19 15:23:52 -07:00
parent aa42630410
commit 4539589326

View File

@@ -112,8 +112,17 @@ export class ImportChromeComponent implements OnInit, OnDestroy {
private i18nService: I18nService,
) {
effect(async () => {
this.profileList = await this.onLoadProfilesFromBrowser(this.getBrowserName(this.format()));
// Callback is set via @Input after constructor, so check it exists
if (this.onLoadProfilesFromBrowser) {
try {
this.profileList = await this.onLoadProfilesFromBrowser(
this.getBrowserName(this.format()),
);
} catch (error) {
this.logService.error("Error loading profiles from browser:", error);
// FIXME: Add error handling and display when profiles could not be loaded/retrieved
}
}
});
}