chore: rename atomBinding to electronBinding (#17419)

This commit is contained in:
Shelley Vohr 2019-03-18 12:37:06 -07:00 committed by GitHub
parent 5025c991ee
commit 38d75010c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 167 additions and 164 deletions

View file

@ -3,8 +3,8 @@ import * as path from 'path'
import * as electron from 'electron'
import { EventEmitter } from 'events'
const bindings = process.atomBinding('app')
const commandLine = process.atomBinding('command_line')
const bindings = process.electronBinding('app')
const commandLine = process.electronBinding('command_line')
const { app, App } = bindings
// Only one app object permitted.
@ -64,5 +64,5 @@ for (const name of events) {
}
// Wrappers for native classes.
const { DownloadItem } = process.atomBinding('download_item')
const { DownloadItem } = process.electronBinding('download_item')
Object.setPrototypeOf(DownloadItem.prototype, EventEmitter.prototype)