Minor edits to example guide

This commit is contained in:
Kevin Sawicki 2017-04-27 14:22:56 -07:00 committed by GitHub
parent c0669cb46e
commit c26605c384

View file

@ -138,11 +138,13 @@ app.once('ready', () => {
window.setTouchBar(touchBar) window.setTouchBar(touchBar)
}) })
``` ```
### Running the above example ### Running the above example
To run the example above, you'll need to (assuming you've got a terminal open in the dirtectory you want to run the example): To run the example above, you'll need to (assuming you've got a terminal open in the dirtectory you want to run the example):
1. Save the above file to your computer, named as touchbar.js 1. Save the above file to your computer as `touchbar.js`
2. Install electron via e.g. `npm install electron` 2. Install Electron via `npm install electron`
3. Run the example inside electron: `./node_modules/.bin/electron touchbar.js` 3. Run the example inside Electron: `./node_modules/.bin/electron touchbar.js`
You should then see a new electron window and the app running in your touchbar (or touchbar emulator). You should then see a new Electron window and the app running in your touch bar (or touch bar emulator).