mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
rename init-config to config-init
This commit is contained in:
parent
395cafbabd
commit
bff6909407
2 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
|
@ -6,7 +6,6 @@ const genUid = require('uid2');
|
|||
const { resolve } = require('path');
|
||||
const isDev = require('electron-is-dev');
|
||||
const AutoUpdater = require('./auto-updater');
|
||||
const initConfig = require('./init-config');
|
||||
|
||||
if (isDev) {
|
||||
console.log('running in dev mode');
|
||||
|
|
@ -24,6 +23,9 @@ const url = 'file://' + resolve(
|
|||
|
||||
console.log('electron will open', url);
|
||||
|
||||
// initializate configuration
|
||||
require('./config-init')();
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
// by subscribing to this event and nooping
|
||||
// we prevent electron's default behavior
|
||||
|
|
@ -31,8 +33,6 @@ app.on('window-all-closed', () => {
|
|||
// terminal is closed
|
||||
});
|
||||
|
||||
const configFile = initConfig();
|
||||
|
||||
let winCount = 0;
|
||||
|
||||
app.on('ready', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue