mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 19:53:43 +00:00
add import-chrome-component.ts to working tree
This commit is contained in:
@@ -112,8 +112,17 @@ export class ImportChromeComponent implements OnInit, OnDestroy {
|
|||||||
private i18nService: I18nService,
|
private i18nService: I18nService,
|
||||||
) {
|
) {
|
||||||
effect(async () => {
|
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
|
// FIXME: Add error handling and display when profiles could not be loaded/retrieved
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user