(url: string, corsProxyUrl = CORS_PROXY)
| 11 | } |
| 12 | |
| 13 | export function toProxiedUrl(url: string, corsProxyUrl = CORS_PROXY): string { |
| 14 | if (corsProxyUrl === "none") { |
| 15 | return url; |
| 16 | } |
| 17 | return `${normalizeCorsProxyUrl(corsProxyUrl)}?url=${encodeURIComponent(url)}`; |
| 18 | } |
no test coverage detected