mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
run activity recording outside angular
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 7933746d82...7bc65b8366
@@ -84,16 +84,18 @@ export class AppComponent implements OnInit {
|
|||||||
private messagingService: MessagingService) { }
|
private messagingService: MessagingService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
setTimeout(async () => {
|
this.ngZone.runOutsideAngular(() => {
|
||||||
await this.updateAppMenu();
|
setTimeout(async () => {
|
||||||
}, 1000);
|
await this.updateAppMenu();
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
window.onmousemove = () => this.recordActivity();
|
window.onmousemove = () => this.recordActivity();
|
||||||
window.onmousedown = () => this.recordActivity();
|
window.onmousedown = () => this.recordActivity();
|
||||||
window.ontouchstart = () => this.recordActivity();
|
window.ontouchstart = () => this.recordActivity();
|
||||||
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