mostly more globals
This commit is contained in:
parent
c4b6cf4a8e
commit
9db733a4ff
6 changed files with 38 additions and 30 deletions
|
@ -116,7 +116,7 @@ app.on('ready', function () {
|
|||
setImmediate(function () {
|
||||
try {
|
||||
item.getURL()
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
window.webContents.send('download-error', url, filename, err.message)
|
||||
}
|
||||
})
|
||||
|
@ -132,8 +132,7 @@ app.on('ready', function () {
|
|||
item.getContentDisposition(),
|
||||
item.getFilename())
|
||||
})
|
||||
if (need_cancel)
|
||||
item.cancel()
|
||||
if (need_cancel) item.cancel()
|
||||
}
|
||||
})
|
||||
event.returnValue = 'done'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue