export class ActivityTrackerService {
  constructor() {
    this.track();
  }

  get mostRecentActivity() {
    return this.timestamp;
  }

  track() {
    this.timestamp = Date.now();
  }

  activeWithinTimespan(timespan) {
    console.log(Date.now() - this.timestamp, (Date.now() - this.timestamp) <= timespan);
    return (Date.now() - this.timestamp) <= timespan;
  }
}
@@ -236,98 +236,8 @@
  %7B%0D%0A
-    console.log(Date.now() - this.timestamp, (Date.now() - this.timestamp) %3C= timespan);%0D%0A
     
@@ -293,8 +293,10 @@
 %0D%0A  %7D%0D%0A%7D
+%0D%0A

Stop logging from activity tracker