diff --git a/jslib b/jslib index 7ae640e5f8d..6b3dc2344f2 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 7ae640e5f8de3454fe8279aab2717abd6d12ca42 +Subproject commit 6b3dc2344f2db167cbc404d83fa4602a1ca93ef8 diff --git a/src/popup/app.component.ts b/src/popup/app.component.ts index f14102a0e4a..d7fe78bea39 100644 --- a/src/popup/app.component.ts +++ b/src/popup/app.component.ts @@ -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({ diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index dad06be6206..ad1832d8208 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -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,