()
| 86 | // The app's own pages are linked as daily.dev and app.daily.dev whatever |
| 87 | // origin serves them, so both count as inside along with the page's own. |
| 88 | const appHosts = (): string[] => |
| 89 | [ |
| 90 | 'daily.dev', |
| 91 | 'app.daily.dev', |
| 92 | globalThis.location?.host, |
| 93 | new URL(getAbsoluteWebappUrl()).host, |
| 94 | ].filter(Boolean) as string[]; |
| 95 | |
| 96 | // A web link that leaves the app: not one of its own pages, not a sign-in |
| 97 | // or share hand-off that belongs to the destination. |
no test coverage detected