diff --git a/lib/api.js b/lib/api.js index 1e66a506b..0bdb39e46 100644 --- a/lib/api.js +++ b/lib/api.js @@ -13,12 +13,12 @@ Api.prototype.addApiCommands = function (api) { this.addMainProcessApis(api.electron.remote) this.addBrowserWindowApis(api.browserWindow) this.addWebContentsApis(api.webContents) - this.addProcessApis(api.process) + this.addProcessApis(api.rendererProcess) this.api = { browserWindow: api.browserWindow, electron: api.electron, - rendererProcess: api.process, + rendererProcess: api.rendererProcess, webContents: api.webContents } @@ -51,7 +51,7 @@ Api.prototype.loadApi = function () { var api = { browserWindow: {}, electron: {}, - process: {}, + rendererProcess: {}, webContents: {} } @@ -140,7 +140,7 @@ Api.prototype.loadApi = function () { function addProcess () { for (var name in process) { if (ignoreApi(name)) continue - api.process[name] = 'process.' + name + api.rendererProcess[name] = 'process.' + name } }