@internetarchive/ia-book-actions 0.1.11-b1 → 0.1.11-b2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/ia-book-actions",
3
- "version": "0.1.11-b1",
3
+ "version": "0.1.11-b2",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -518,6 +518,7 @@ export default class IABookActions extends LitElement {
518
518
 
519
519
  async startBrowseTimer() {
520
520
  clearTimeout(this.browseTimer);
521
+ console.log('startBrowseTimerstartBrowseTimer just cleared timer', this.browseTimer, this.lendingStatus);
521
522
 
522
523
  const {
523
524
  browsingExpired,
@@ -530,6 +531,7 @@ export default class IABookActions extends LitElement {
530
531
  }
531
532
 
532
533
  this.browseTimer = setTimeout(() => {
534
+ console.log('start `this.browseTimer will fire his.browseHasExpired() - secondsLeftOnLoan', secondsLeftOnLoan);
533
535
  this.browseHasExpired();
534
536
  }, secondsLeftOnLoan * 1000);
535
537
  }
@@ -545,6 +547,8 @@ export default class IABookActions extends LitElement {
545
547
  const strokeDashOffset =
546
548
  (secondsLeft / this.loanRenewTimeConfig.loanTotalTime) * 315;
547
549
 
550
+ console.log('resetTimerCountState === ', secondsLeft);
551
+
548
552
  // set seconds left in loan expire
549
553
  timerCountdown.style?.setProperty('--secondsLeftOnLoan', `${secondsLeft}s`);
550
554