@internetarchive/ia-book-actions 0.1.11-b44 → 0.1.11-b46

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-b44",
3
+ "version": "0.1.11-b46",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -255,13 +255,7 @@ export default class IABookActions extends LitElement {
255
255
  * - if book is going to renew, need to wait until renew is completed
256
256
  */
257
257
  setTimeout(() => {
258
- if (!this.loanTokenPollerStarted) {
259
- this.startLoanTokenPoller();
260
- this.loanTokenPollerStarted = true;
261
- } elseif(!this.browseHasExpired) {
262
-
263
- }
264
-
258
+ if (!hasExpired) this.startLoanTokenPoller();
265
259
  }, 100);
266
260
 
267
261
  this.requestUpdate();