@internetarchive/ia-book-actions 0.0.29-alpha8 → 0.0.29-alpha9

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.0.29-alpha8",
3
+ "version": "0.0.29-alpha9",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -135,6 +135,13 @@ export default class IABookActions extends LitElement {
135
135
  this.browseAgainNow = this.autoRenewRes.browseAgainNow;
136
136
 
137
137
  if (this.browseAgainNow) {
138
+ this.tokenPoller.disconnectedInterval();
139
+
140
+ // start tokenPoller after 2 minute
141
+ setTimeout(() => {
142
+ this.startLoanTokenPoller();
143
+ }, this.tokenDelay);
144
+
138
145
  await this.browseHasRenew();
139
146
  }
140
147
 
@@ -166,7 +173,6 @@ export default class IABookActions extends LitElement {
166
173
  secondsLeftOnLoan: secondsLeft,
167
174
  };
168
175
  this.lendingStatus = currStatus;
169
- // this.performUpdate()
170
176
 
171
177
  this.startBrowseTimer();
172
178
  }