Rename autoupdate -> auto_update, remove redundancy
This commit is contained in:
parent
ceaff68d55
commit
8f30e13ec1
2 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ function onError(error) {
|
||||||
console.log("Got an error while updating: ", error.stack);
|
console.log("Got an error while updating: ", error.stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
function initializeAutoUpdater() {
|
function initialize() {
|
||||||
if (autoUpdateDisabled()) {
|
if (autoUpdateDisabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -59,5 +59,5 @@ function initializeAutoUpdater() {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
initializeAutoUpdater
|
initialize
|
||||||
};
|
};
|
4
main.js
4
main.js
|
@ -7,7 +7,7 @@ const ipc = electron.ipcMain;
|
||||||
const Menu = electron.Menu;
|
const Menu = electron.Menu;
|
||||||
const shell = electron.shell;
|
const shell = electron.shell;
|
||||||
|
|
||||||
const autoupdate = require('./app/autoupdate');
|
const autoUpdate = require('./app/auto_update');
|
||||||
const windowState = require('./app/window_state');
|
const windowState = require('./app/window_state');
|
||||||
|
|
||||||
console.log('setting AUMID');
|
console.log('setting AUMID');
|
||||||
|
@ -154,7 +154,7 @@ function createWindow () {
|
||||||
app.on('ready', function() {
|
app.on('ready', function() {
|
||||||
console.log('app ready');
|
console.log('app ready');
|
||||||
|
|
||||||
autoupdate.initializeAutoUpdater();
|
autoUpdate.initialize();
|
||||||
|
|
||||||
createWindow();
|
createWindow();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue