mostly more globals

This commit is contained in:
Zeke Sikelianos 2016-03-28 16:11:00 -07:00 committed by Kevin Sawicki
parent c4b6cf4a8e
commit 9db733a4ff
6 changed files with 38 additions and 30 deletions

View file

@ -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'