mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix noproxy handling for image downloading
This commit is contained in:
@@ -84,10 +84,11 @@ function exec(opts) {
|
||||
}
|
||||
|
||||
async function getImage(imageUrl) {
|
||||
const proxyConf = await syncOptions.getSyncProxy();
|
||||
const opts = {
|
||||
method: 'GET',
|
||||
url: imageUrl,
|
||||
proxy: await syncOptions.getSyncProxy()
|
||||
proxy: proxyConf !== "noproxy" ? proxyConf : null
|
||||
};
|
||||
|
||||
const client = getClient(opts);
|
||||
|
||||
Reference in New Issue
Block a user