Use const for util require
This commit is contained in:
parent
6617592224
commit
7da4c3acf7
1 changed files with 2 additions and 1 deletions
|
@ -3,12 +3,13 @@
|
|||
const app = require('electron').app;
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
const squirrelUpdate = require('./squirrel-update-win');
|
||||
const util = require('util');
|
||||
|
||||
function AutoUpdater() {
|
||||
EventEmitter.call(this);
|
||||
}
|
||||
|
||||
require('util').inherits(AutoUpdater, EventEmitter);
|
||||
util.inherits(AutoUpdater, EventEmitter);
|
||||
|
||||
AutoUpdater.prototype.quitAndInstall = function() {
|
||||
squirrelUpdate.processStart();
|
||||
|
|
Loading…
Reference in a new issue