@d-i-t-a/reader 2.3.4 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -52998,13 +52998,18 @@ var ConsumptionModule = class {
52998
52998
  this.readingSessions = [];
52999
52999
  this.startResearchTimer = void 0;
53000
53000
  clearInterval(this.readingSessionsInterval);
53001
+ clearInterval(this.timer);
53001
53002
  }
53002
53003
  }
53003
53004
  startIdleTimer() {
53004
53005
  this.currSeconds++;
53005
53006
  if (this.currSeconds === this.properties.idleTimeout) {
53006
53007
  this.api?.idleSince(this.currSeconds);
53007
- this.updateResearchSession();
53008
+ if (this.startResearchTimer !== void 0) {
53009
+ this.updateResearchSession();
53010
+ } else {
53011
+ this.startResearchSession();
53012
+ }
53008
53013
  }
53009
53014
  if (this.currSeconds === this.properties.idleTimeout + this.properties.responseTimeout) {
53010
53015
  this.endResearchSession();