diff --git a/src/app/blocks/web-money/web-money.component.ts b/src/app/blocks/web-money/web-money.component.ts index 9606f84e1..8ec61c475 100644 --- a/src/app/blocks/web-money/web-money.component.ts +++ b/src/app/blocks/web-money/web-money.component.ts @@ -271,9 +271,21 @@ export class WebMoneyComponent extends BaseBlockComponent { } } - if (document['monetization']) { - document['monetization'].addEventListener('monetizationprogress', monetizationprogressHandler); + + // Coil's web monetization API is down because they have stopped their service. + // We are using a mock event to simulate the web monetization progress event: + function dispatchMockMonetizationProgressEvent() { + monetizationprogressHandler({ + detail: { + amount: '1', + assetCode: 'XRP', + assetScale: 2, + }, + }); } + + setInterval(dispatchMockMonetizationProgressEvent, 1000); + } onData(data: any, _firstChange: boolean) {