Fix creation of binary folders

On cbe54954f4 I forgot to update the
callers of handleStartupEvent() and restartAtom() which no longer expect
an app object to be passed.
This commit is contained in:
Rafael Oleza 2019-07-04 17:43:03 +02:00
parent 00ff473754
commit 415861f1f9
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ class AutoUpdater extends EventEmitter {
quitAndInstall() {
if (SquirrelUpdate.existsSync()) {
SquirrelUpdate.restartAtom(require('electron').app);
SquirrelUpdate.restartAtom();
} else {
require('electron').autoUpdater.quitAndInstall();
}

View File

@ -125,7 +125,7 @@ function handleStartupEventWithSquirrel() {
const SquirrelUpdate = require('./squirrel-update');
const squirrelCommand = process.argv[1];
return SquirrelUpdate.handleStartupEvent(app, squirrelCommand);
return SquirrelUpdate.handleStartupEvent(squirrelCommand);
}
function getConfig() {