| 12 | }; |
| 13 | |
| 14 | static override async bind(): Promise<void> { |
| 15 | // The close action removes the active class from the element it |
| 16 | // points to. |
| 17 | this.engine.on('click', '[data-component="message-modal"] [data-action="close"]', () => { |
| 18 | Message.blocking = false; |
| 19 | this.engine.element().find('[data-component="message-modal"]').remove(); |
| 20 | this.engine.proceed({ userInitiated: true, skip: false, autoPlay: false }); |
| 21 | }); |
| 22 | } |
| 23 | |
| 24 | static override async shouldProceed(_options?: { userInitiated?: boolean; skip?: boolean; autoPlay?: boolean; }): Promise<void> { |
| 25 | if (Message.blocking) { |