mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-758 - Change network request implementation to use electron's API (#509)
This commit is contained in:
committed by
Vishwas Shashidhar
parent
6321cc7dbd
commit
0c8b322d63
@@ -26,6 +26,7 @@ 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')();
|
||||
|
||||
@@ -199,7 +200,8 @@ app.on('ready', () => {
|
||||
electron.powerMonitor.on('unlock-screen', () => {
|
||||
eventEmitter.emit('sys-unlocked');
|
||||
});
|
||||
|
||||
// Keeps track of active network request
|
||||
monitorNetworkRequest();
|
||||
checkFirstTimeLaunch()
|
||||
.then(readConfigThenOpenMainWindow)
|
||||
.catch(readConfigThenOpenMainWindow);
|
||||
|
||||
Reference in New Issue
Block a user