[Splash > Backend] Minor source cleanup
This commit is contained in:
parent
c829a9135b
commit
b8000c2e8a
1 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
const { join } = require('path');
|
const { join } = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const _events = require('events');
|
|
||||||
const { BrowserWindow, app } = require('electron');
|
const { BrowserWindow, app } = require('electron');
|
||||||
|
|
||||||
const paths = require('../paths');
|
const paths = require('../paths');
|
||||||
|
@ -12,9 +11,7 @@ let modulesListeners = {};
|
||||||
let launchedMainWindow = false;
|
let launchedMainWindow = false;
|
||||||
let updateAttempt = 0;
|
let updateAttempt = 0;
|
||||||
let restartRequired = false;
|
let restartRequired = false;
|
||||||
let splashWindow;
|
let splashWindow, updateTimeout, newUpdater;
|
||||||
let updateTimeout;
|
|
||||||
let newUpdater;
|
|
||||||
|
|
||||||
|
|
||||||
exports.initSplash = (startMinimized = false) => {
|
exports.initSplash = (startMinimized = false) => {
|
||||||
|
@ -138,7 +135,7 @@ const INSTALLING_MODULES_FINISHED = 'installing-modules-finished';
|
||||||
const UPDATE_MANUALLY = 'update-manually';
|
const UPDATE_MANUALLY = 'update-manually';
|
||||||
const APP_SHOULD_LAUNCH = 'APP_SHOULD_LAUNCH';
|
const APP_SHOULD_LAUNCH = 'APP_SHOULD_LAUNCH';
|
||||||
const APP_SHOULD_SHOW = 'APP_SHOULD_SHOW';
|
const APP_SHOULD_SHOW = 'APP_SHOULD_SHOW';
|
||||||
const events = new _events.EventEmitter();
|
const events = new (require('events').EventEmitter)();
|
||||||
|
|
||||||
exports.APP_SHOULD_LAUNCH = APP_SHOULD_LAUNCH;
|
exports.APP_SHOULD_LAUNCH = APP_SHOULD_LAUNCH;
|
||||||
exports.APP_SHOULD_SHOW = APP_SHOULD_SHOW;
|
exports.APP_SHOULD_SHOW = APP_SHOULD_SHOW;
|
||||||
|
|
Loading…
Reference in a new issue