src/execute-js-func.js
function executeMainProcessMethod(moduleName, methodChain, args) {
  const theModule = electron[moduleName];
  const path = methodChain.join('.');
  return get(theModule, path).apply(theModule, args);
}
function executeMainProcessMethod(moduleName, methodChain, args) {
  const theModule = electron[moduleName];
  const path = methodChain.join('.');
  return get(theModule, path).apply(theModule, args);
}
Invokes a method on a module in the main process.

@param {string} moduleName         The name of the module to require
@param {Array<string>} methodChain The path to the module, e.g., ['dock', 'bounce']
@param {Array} args                The arguments to pass to the method

@returns                           The result of calling the method

@private