Merge pull request #4235 from Bipsync/master
Autoupdate: Fixed crash after update is downloaded on windows
This commit is contained in:
commit
1ce85a69b9
1 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
const app = require('electron').app;
|
const app = require('electron').app;
|
||||||
const EventEmitter = require('events').EventEmitter;
|
const EventEmitter = require('events').EventEmitter;
|
||||||
const url = require('url');
|
|
||||||
const squirrelUpdate = require('./squirrel-update-win');
|
const squirrelUpdate = require('./squirrel-update-win');
|
||||||
|
|
||||||
class AutoUpdater extends EventEmitter {
|
class AutoUpdater extends EventEmitter {
|
||||||
|
@ -45,8 +44,7 @@ class AutoUpdater extends EventEmitter {
|
||||||
|
|
||||||
// Following information is not available on Windows, so fake them.
|
// Following information is not available on Windows, so fake them.
|
||||||
date = new Date;
|
date = new Date;
|
||||||
url = _this.updateURL;
|
return _this.emit('update-downloaded', {}, releaseNotes, version, date, _this.updateURL, function() {
|
||||||
return _this.emit('update-downloaded', {}, releaseNotes, version, date, url, function() {
|
|
||||||
return _this.quitAndInstall();
|
return _this.quitAndInstall();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue