fix: Skip proxy for seed file and custom behavior downloads (#907)

This commit is contained in:
Percival 2025-11-11 23:51:24 +08:00 committed by GitHub
parent 37a6fa974b
commit 7dd13a9ec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,8 +40,9 @@ async function writeUrlContentsToFile(
url: string,
pathPrefix: string,
pathDefaultExt: string,
useProxy: boolean = false,
) {
const res = await fetch(url, { dispatcher: getProxyDispatcher(url) });
const res = await fetch(url, { dispatcher: useProxy ? getProxyDispatcher(url) : undefined });
const fileContents = await res.text();
const filename =