mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-19 02:51:14 +02:00
detect chages on promise catch
This commit is contained in:
parent
613dfaafd0
commit
97835f7627
@ -153,8 +153,11 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
|
|||||||
BrowserApi.closePopup(window);
|
BrowserApi.closePopup(window);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
this.ngZone.run(() => {
|
||||||
this.analytics.eventTrack.next({ action: 'Autofilled Error' });
|
this.analytics.eventTrack.next({ action: 'Autofilled Error' });
|
||||||
this.toasterService.popAsync('error', null, this.i18nService.t('autofillError'));
|
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
|
// Weird bug in Safari won't allow clipboard copying after a promise call, so we have this workaround
|
||||||
|
Loading…
Reference in New Issue
Block a user