|
@@ -74,7 +74,7 @@ app.on('ready', function() {
|
|
|
|
|
|
// Send auto updater errors to window to be verified in specs
|
|
|
electron.autoUpdater.on('error', function (error) {
|
|
|
- window.send('auto-updater-error', error.message)
|
|
|
+ window.send('auto-updater-error', error.message);
|
|
|
});
|
|
|
|
|
|
window = new BrowserWindow({
|
|
@@ -108,7 +108,7 @@ app.on('ready', function() {
|
|
|
// reply the result to renderer for verifying
|
|
|
var downloadFilePath = path.join(__dirname, '..', 'fixtures', 'mock.pdf');
|
|
|
ipcMain.on('set-download-option', function(event, need_cancel, prevent_default) {
|
|
|
- window.webContents.session.once('will-download', function(e, item, webContents) {
|
|
|
+ window.webContents.session.once('will-download', function(e, item) {
|
|
|
if (prevent_default) {
|
|
|
e.preventDefault();
|
|
|
const url = item.getURL();
|