@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 +1 -1
- package/src/ia-book-actions.js +7 -1
package/package.json
CHANGED
package/src/ia-book-actions.js
CHANGED
|
@@ -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
|
}
|