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:
Key 2026-05-12 16:24:24 +01:00 • committed by GitHub
parent b627dd528a
commit f89d4dbc86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}