FileUpload: fix zipline on desktop (#1076)
was ignoring the proxy on desktop but apparently zipline doesnt like that very much, the cors is configured weirdly so its broken even on native
This commit is contained in:
parent
b627dd528a
commit
f89d4dbc86
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ const logger = new Logger("FileUpload", "#7cb7ff");
|
|||
function toProxyUrl(url: string): string {
|
||||
const corsProxyUrl = normalizeCorsProxyUrl((settings.store as { corsProxyUrl?: string; }).corsProxyUrl);
|
||||
|
||||
if (Native || url.startsWith(`${corsProxyUrl}?url=`)) {
|
||||
if (url.startsWith(`${corsProxyUrl}?url=`)) {
|
||||
return url;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue