We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://stackoverflow.com/questions/46102851/electron-download-a-file-to-a-specific-location
i try to use electron-dl, everything does well, my main.js code :
electron-dl
main.js
ipcMain.on("download", (event, info) => { console.dir(event); console.log(info); info.properties.onProgress = status => { console.log('progress'); return event.sender.send("download progress", status) }; download(BrowserWindow.getFocusedWindow(), info.url, info.properties) .then(dl => { console.log("dl.getSavePath()", dl.getSavePath()); return event.sender.send('download complete', dl.getSavePath()); }).catch((error)=>{ console.log('error'); console.log(error); }); });
but when i turn off my wifi, the code console.log('progress'); keep run, never stop. so is there any way to stop run onProgress function?
console.log('progress');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://stackoverflow.com/questions/46102851/electron-download-a-file-to-a-specific-location
i try to use
electron-dl
, everything does well, mymain.js
code :but when i turn off my wifi, the code
console.log('progress');
keep run, never stop.so is there any way to stop run onProgress function?
The text was updated successfully, but these errors were encountered: