@internetarchive/ia-book-actions 0.0.7-6 → 0.0.7-7

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.7-6",
3
+ "version": "0.0.7-7",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -108,6 +108,9 @@ export default class ActionsHandler extends LitElement {
108
108
 
109
109
  // fetch loan token for browsed/borrowed book and set an interval
110
110
  if (borrowType) {
111
+ // Do an initial token, then set an interval
112
+ this.handleLoanTokenPoller();
113
+
111
114
  this.loanTokenInterval = setInterval(() => {
112
115
  this.handleLoanTokenPoller();
113
116
  }, this.loanTokenPollingDelay);