@internetarchive/ia-book-actions 0.1.11-b50 → 0.1.11-b52
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 +12 -0
package/package.json
CHANGED
package/src/ia-book-actions.js
CHANGED
|
@@ -221,6 +221,8 @@ export default class IABookActions extends LitElement {
|
|
|
221
221
|
'browsingExpired' in this.lendingStatus &&
|
|
222
222
|
this.lendingStatus?.browsingExpired;
|
|
223
223
|
if (hasExpired) {
|
|
224
|
+
log('setupLendingToolbarActions > hasExpired --- ');
|
|
225
|
+
|
|
224
226
|
if (!this.tokenPoller) {
|
|
225
227
|
window?.Sentry?.captureMessage(sentryLogs.bookWasExpired);
|
|
226
228
|
}
|
|
@@ -546,6 +548,16 @@ export default class IABookActions extends LitElement {
|
|
|
546
548
|
await this.showExpiredModal();
|
|
547
549
|
|
|
548
550
|
window?.Sentry?.captureMessage(sentryLogs.browseHasExpired);
|
|
551
|
+
|
|
552
|
+
/** Global event - always fire */
|
|
553
|
+
this.dispatchEvent(
|
|
554
|
+
new Event(events.browseExpired, {
|
|
555
|
+
bubbles: true,
|
|
556
|
+
cancelable: false,
|
|
557
|
+
composed: true,
|
|
558
|
+
})
|
|
559
|
+
);
|
|
560
|
+
log('BrowseHasExpired --- event fired');
|
|
549
561
|
}
|
|
550
562
|
|
|
551
563
|
async startBrowseTimer() {
|