From acfa962d5352aae6ca0643ac994824110cd7e86f Mon Sep 17 00:00:00 2001 From: Mathieu Nayrolles Date: Mon, 27 Mar 2017 14:46:19 -0400 Subject: [PATCH] fix(time): Control clock acceleration when leaving the app Aggressively clear interval on ngAfterViewInit --- src/pages/time/time.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/time/time.ts b/src/pages/time/time.ts index 0fe1325..fc482fb 100755 --- a/src/pages/time/time.ts +++ b/src/pages/time/time.ts @@ -67,7 +67,7 @@ export class TimePage extends ClockComponent{ this.twapi.accurateTime().then( date => { - + clearInterval(this.interval); this.interval = setInterval(()=>{ this.date = new Date(this.date.getTime() + this.intervalTime); this.initLocalClocks();