(url: string)
| 26 | export const logger = new Logger("BigFileUpload", "#7cb7ff"); |
| 27 | |
| 28 | function toProxyUrl(url: string): string { |
| 29 | if ((settings.store as { disableCorsProxy?: boolean; }).disableCorsProxy) { |
| 30 | return url; |
| 31 | } |
| 32 | |
| 33 | const corsProxyUrl = normalizeCorsProxyUrl((settings.store as { corsProxyUrl?: string; }).corsProxyUrl); |
| 34 | |
| 35 | if (url.startsWith(`${corsProxyUrl}?url=`)) { |
| 36 | return url; |
| 37 | } |
| 38 | |
| 39 | return toProxiedUrl(url, corsProxyUrl); |
| 40 | } |
| 41 | |
| 42 | let isUploading = false; |
| 43 |
no test coverage detected