@internetarchive/ia-book-actions 0.0.29-alpha33 → 0.0.29-alpha34

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-alpha33",
3
+ "version": "0.0.29-alpha34",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -12,7 +12,7 @@ export class LoanTokenPoller {
12
12
  this.borrowType = borrowType;
13
13
  this.successCallback = successCallback; // callback function to be called after loan token is created
14
14
  this.errorCallback = errorCallback; // callback function to be called after loan token is created
15
- this.pollerDelay = pollerDelay; // value in ms (1000 ms = 1 sec)
15
+ this.pollerDelay = pollerDelay; // value in seconds
16
16
 
17
17
  this.loanTokenInterval = undefined;
18
18
  this.enableBookAccess();
@@ -57,7 +57,7 @@ export class LoanTokenPoller {
57
57
  if (this.borrowType !== 'adminBorrowed') {
58
58
  this.loanTokenInterval = setInterval(() => {
59
59
  this.handleLoanTokenPoller();
60
- }, this.pollerDelay);
60
+ }, this.pollerDelay * 1000);
61
61
  }
62
62
 
63
63
  // event category and action for browsing book access