Refactoring
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const Constants = require('../../constants');
|
||||
const helpers = require('../../helpers');
|
||||
|
||||
const addListeners = (ipcMain, standardIPCReply) => {
|
||||
const addListeners = (ipcMain, {standardIPCReply}) => {
|
||||
ipcMain.on(Constants.IPC_Get_Config, (event, data) => {
|
||||
helpers
|
||||
.getConfig(data.Version, data.Provider, data.Remote)
|
||||
@@ -53,4 +53,4 @@ const addListeners = (ipcMain, standardIPCReply) => {
|
||||
|
||||
module.exports = {
|
||||
addListeners
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user