Open sindresorhus opened 4 years ago
If anyone wants to work on this, see the initial attempt in https://github.com/sindresorhus/electron-dl/pull/138
It seems like using webContents.downloadURL
is the preferred method according to Electron's session docs:
Note: This does not perform any security checks that relate to a page's origin, unlike
webContents.downloadURL
.
Electron 8 added a new useful API: https://github.com/electron/electron/pull/19889/files
We should use it for
electronDl.download()
.