mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
run activity recording outside angular
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 7933746d82...7bc65b8366
@@ -84,6 +84,7 @@ export class AppComponent implements OnInit {
|
|||||||
private messagingService: MessagingService) { }
|
private messagingService: MessagingService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.ngZone.runOutsideAngular(() => {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await this.updateAppMenu();
|
await this.updateAppMenu();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
@@ -94,6 +95,7 @@ export class AppComponent implements OnInit {
|
|||||||
window.onclick = () => this.recordActivity();
|
window.onclick = () => this.recordActivity();
|
||||||
window.onscroll = () => this.recordActivity();
|
window.onscroll = () => this.recordActivity();
|
||||||
window.onkeypress = () => this.recordActivity();
|
window.onkeypress = () => this.recordActivity();
|
||||||
|
});
|
||||||
|
|
||||||
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
|
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
|
||||||
this.ngZone.run(async () => {
|
this.ngZone.run(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user