@internetarchive/ia-book-actions 0.1.11-b44 → 0.1.11-b47
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 +3 -9
package/package.json
CHANGED
package/src/ia-book-actions.js
CHANGED
|
@@ -20,7 +20,7 @@ import { sentryLogs } from './core/config/sentry-events.js';
|
|
|
20
20
|
import { LoanTokenPoller } from './core/services/loan-token-poller.js';
|
|
21
21
|
import { LoanRenewHelper } from './core/services/loan-renew-helper.js';
|
|
22
22
|
import log from './core/services/log.js';
|
|
23
|
-
import { URLHelper } from './core/config/url-helper.js'
|
|
23
|
+
import { URLHelper } from './core/config/url-helper.js';
|
|
24
24
|
|
|
25
25
|
export const events = {
|
|
26
26
|
browseExpired: 'IABookReader:BrowsingHasExpired',
|
|
@@ -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.
|
|
259
|
-
this.startLoanTokenPoller();
|
|
260
|
-
this.loanTokenPollerStarted = true;
|
|
261
|
-
} elseif(!this.browseHasExpired) {
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
|
|
258
|
+
if (!hasExpired && !window.IALendingIntervals.tokenPoller) this.startLoanTokenPoller();
|
|
265
259
|
}, 100);
|
|
266
260
|
|
|
267
261
|
this.requestUpdate();
|
|
@@ -467,7 +461,7 @@ export default class IABookActions extends LitElement {
|
|
|
467
461
|
<button
|
|
468
462
|
style="${modalButtonStyle.iaButton} ${modalButtonStyle.renew}"
|
|
469
463
|
@click=${() => {
|
|
470
|
-
URLHelper.goToUrl(this.returnUrl, true)
|
|
464
|
+
URLHelper.goToUrl(this.returnUrl, true);
|
|
471
465
|
}}
|
|
472
466
|
>
|
|
473
467
|
Okay
|