(url: string)
| 15 | // A post page. A post opened over the feed pushes `/posts/:id` as its URL |
| 16 | // too, so this covers the modal as well. |
| 17 | export const isPostUrl = (url: string): boolean => { |
| 18 | const [path = ''] = url.split('#')[0].split('?'); |
| 19 | |
| 20 | return withoutLayoutVariantPrefix(path).startsWith('/posts/'); |
| 21 | }; |
| 22 | |
| 23 | /** |
| 24 | * Opens the App Store review ask when Customer.io has scheduled one for this |
no test coverage detected