downloadURL

fun downloadURL(url: String, options: DownloadURLOptions = definedExternally)(source)

Initiates a download of the resource at url. The API will generate a DownloadItem that can be accessed with the will-download event.

Note: This does not perform any security checks that relate to a page's origin, unlike webContents.downloadURL.