(event: Event)
| 826 | }; |
| 827 | // The wrapper hands back links to the app found inside the article. |
| 828 | const onArticleLink = (event: Event) => { |
| 829 | const { url } = (event as CustomEvent<{ url: string }>).detail ?? {}; |
| 830 | if (url) { |
| 831 | linkAfterClose.current = url; |
| 832 | closedBy.current = CloseReason.Link; |
| 833 | closeReading(); |
| 834 | } |
| 835 | }; |
| 836 | // A tap on the dimmed page puts the post back down. |
| 837 | const onClick = (event: MouseEvent) => { |
| 838 | if ( |
nothing calls this directly
no test coverage detected