Hello. So I am using electron-dl, and it works fine if the window has focus. However, if the window does not have focus, nothing downloads and the save dialogue appears, which I don't want it to. I attempted to pass saveAs:false into the options, but still this behaviour persists.
This app needs to check for files and if they are present, download the files every hour. Thus, I need the app to not download without prompting, even if the window does not have focus. Is there any way to overcome this? My snippet is below:
ipcMain.on('dl-files', (event, args) => {
return Promise.all(
args.files.map(async (file)=>{
logger.log(file.url)
return await download(mainWindow, file.url,{saveAs:false})
})
)
.then(...)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too