(value: string)
| 1766 | } |
| 1767 | |
| 1768 | function frontendUrl(value: string): URL { |
| 1769 | if (value.startsWith("http://") || value.startsWith("https://")) { |
| 1770 | return new URL(value); |
| 1771 | } |
| 1772 | return new URL(apiUrl(value), window.location.href); |
| 1773 | } |
| 1774 | |
| 1775 | function normalizeWebSocketUrl( |
| 1776 | rawUrl: string, |
no test coverage detected