Revert "ELECTRON-758 - Change network request implementation to use electron's API (#509)" (#514)

This reverts commit 0c8b322
This commit is contained in:
Kiran Niranjan
2018-10-03 21:30:52 +05:30
committed by Vishwas Shashidhar
parent 4e25fddbe6
commit c895291324
4 changed files with 25 additions and 48 deletions

View File

@@ -26,7 +26,6 @@ const log = require('./log.js');
const logLevels = require('./enums/logLevels.js');
const autoLaunch = require('./autoLaunch');
const { handleCacheFailureCheckOnStartup, handleCacheFailureCheckOnExit} = require('./cacheHandler');
const { monitorNetworkRequest } = require('./memoryMonitor');
require('electron-dl')();
@@ -200,8 +199,7 @@ app.on('ready', () => {
electron.powerMonitor.on('unlock-screen', () => {
eventEmitter.emit('sys-unlocked');
});
// Keeps track of active network request
monitorNetworkRequest();
checkFirstTimeLaunch()
.then(readConfigThenOpenMainWindow)
.catch(readConfigThenOpenMainWindow);