mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
detect chages on promise catch
This commit is contained in:
@@ -153,8 +153,11 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
|
||||
BrowserApi.closePopup(window);
|
||||
}
|
||||
}).catch(() => {
|
||||
this.analytics.eventTrack.next({ action: 'Autofilled Error' });
|
||||
this.toasterService.popAsync('error', null, this.i18nService.t('autofillError'));
|
||||
this.ngZone.run(() => {
|
||||
this.analytics.eventTrack.next({ action: 'Autofilled Error' });
|
||||
this.toasterService.popAsync('error', null, this.i18nService.t('autofillError'));
|
||||
this.changeDetectorRef.detectChanges();
|
||||
});
|
||||
});
|
||||
|
||||
// Weird bug in Safari won't allow clipboard copying after a promise call, so we have this workaround
|
||||
|
||||
Reference in New Issue
Block a user