Skip to content

Commit

Permalink
process -> rendererProcess for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Apr 26, 2016
1 parent f47991c commit ab15dfd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -51,7 +51,7 @@ Api.prototype.loadApi = function () {
var api = {
browserWindow: {},
electron: {},
process: {},
rendererProcess: {},
webContents: {}
}

Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit ab15dfd

Please sign in to comment.