mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-29 04:17:41 +02: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) { }
|
private changeDetectorRef: ChangeDetectorRef, private ngZone: NgZone) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
window.onmousemove = () => this.recordActivity();
|
this.ngZone.runOutsideAngular(() => {
|
||||||
window.onmousedown = () => this.recordActivity();
|
window.onmousemove = () => this.recordActivity();
|
||||||
window.ontouchstart = () => this.recordActivity();
|
window.onmousedown = () => this.recordActivity();
|
||||||
window.onclick = () => this.recordActivity();
|
window.ontouchstart = () => this.recordActivity();
|
||||||
window.onscroll = () => this.recordActivity();
|
window.onclick = () => this.recordActivity();
|
||||||
window.onkeypress = () => this.recordActivity();
|
window.onscroll = () => this.recordActivity();
|
||||||
|
window.onkeypress = () => this.recordActivity();
|
||||||
|
});
|
||||||
|
|
||||||
(window as any).bitwardenPopupMainMessageListener = async (msg: any, sender: any, sendResponse: any) => {
|
(window as any).bitwardenPopupMainMessageListener = async (msg: any, sender: any, sendResponse: any) => {
|
||||||
if (msg.command === 'doneLoggingOut') {
|
if (msg.command === 'doneLoggingOut') {
|
||||||
|
Loading…
Reference in New Issue
Block a user