mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-06 00:48:08 +02:00
run activity recording outside angular
This commit is contained in:
parent
9e33233219
commit
011b4e344e
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 7933746d822206d58ca852521dc59467af885239
|
||||
Subproject commit 7bc65b83667b0864af2b7aaf093ec611ecb625d8
|
@ -84,16 +84,18 @@ export class AppComponent implements OnInit {
|
||||
private messagingService: MessagingService) { }
|
||||
|
||||
ngOnInit() {
|
||||
setTimeout(async () => {
|
||||
await this.updateAppMenu();
|
||||
}, 1000);
|
||||
this.ngZone.runOutsideAngular(() => {
|
||||
setTimeout(async () => {
|
||||
await this.updateAppMenu();
|
||||
}, 1000);
|
||||
|
||||
window.onmousemove = () => this.recordActivity();
|
||||
window.onmousedown = () => this.recordActivity();
|
||||
window.ontouchstart = () => this.recordActivity();
|
||||
window.onclick = () => this.recordActivity();
|
||||
window.onscroll = () => this.recordActivity();
|
||||
window.onkeypress = () => this.recordActivity();
|
||||
window.onmousemove = () => this.recordActivity();
|
||||
window.onmousedown = () => this.recordActivity();
|
||||
window.ontouchstart = () => this.recordActivity();
|
||||
window.onclick = () => this.recordActivity();
|
||||
window.onscroll = () => this.recordActivity();
|
||||
window.onkeypress = () => this.recordActivity();
|
||||
});
|
||||
|
||||
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
|
||||
this.ngZone.run(async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user