mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-04 09:01:01 +01:00
activity recording runOutsideAngular
This commit is contained in:
parent
f01b9e9632
commit
3c48f80861
@ -65,12 +65,14 @@ export class AppComponent implements OnInit {
|
||||
private changeDetectorRef: ChangeDetectorRef, private ngZone: NgZone) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.ngZone.runOutsideAngular(() => {
|
||||
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 as any).bitwardenPopupMainMessageListener = async (msg: any, sender: any, sendResponse: any) => {
|
||||
if (msg.command === 'doneLoggingOut') {
|
||||
|
Loading…
Reference in New Issue
Block a user