mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-02 03:41:09 +01:00
dont need change detector
This commit is contained in:
parent
815ef17d02
commit
755e3486ee
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 7ae640e5f8de3454fe8279aab2717abd6d12ca42
|
||||
Subproject commit 6b3dc2344f2db167cbc404d83fa4602a1ca93ef8
|
@ -107,7 +107,6 @@ export class AppComponent implements OnInit {
|
||||
} else if (msg.command === 'showToast') {
|
||||
this.ngZone.run(async () => {
|
||||
await this.showToast(msg);
|
||||
this.changeDetectorRef.detectChanges();
|
||||
});
|
||||
} else if (msg.command === 'analyticsEventTrack') {
|
||||
this.analytics.eventTrack.next({
|
||||
|
@ -178,7 +178,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
return true;
|
||||
}
|
||||
|
||||
showToast(type: 'error' | 'success' | 'warning' | 'info', title: string, text: string, options?: any): void {
|
||||
showToast(type: 'error' | 'success' | 'warning' | 'info', title: string, text: string | string[],
|
||||
options?: any): void {
|
||||
this.messagingService.send('showToast', {
|
||||
text: text,
|
||||
title: title,
|
||||
|
Loading…
Reference in New Issue
Block a user