From 371101bf69a64cdaf520f5d7106573b9fc93f4ac Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 26 Apr 2018 16:17:34 -0400 Subject: [PATCH] remove unneeded features --- jslib | 2 +- src/app/app.component.ts | 19 +------------------ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/jslib b/jslib index 35039fda..12533dd9 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 35039fdae2038f6bdfbdef6616b2bfae0053d47b +Subproject commit 12533dd951e5f248ee82ca0100fb9fd215fc6bd3 diff --git a/src/app/app.component.ts b/src/app/app.component.ts index b3c1f566..f247dcb5 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -66,16 +66,9 @@ export class AppComponent implements OnInit { ngOnInit() { this.ngZone.runOutsideAngular(() => { - setTimeout(async () => { + window.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(); }); this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => { @@ -123,16 +116,6 @@ export class AppComponent implements OnInit { }); } - private async recordActivity() { - const now = (new Date()).getTime(); - if (this.lastActivity != null && now - this.lastActivity < 250) { - return; - } - - this.lastActivity = now; - this.storageService.save(ConstantsService.lastActiveKey, now); - } - private openModal(type: Type, ref: ViewContainerRef) { if (this.modal != null) { this.modal.close();