Skip to content

Commit c26605c

Browse files
authored
Minor edits to example guide
1 parent c0669cb commit c26605c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs/api/touch-bar.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,13 @@ app.once('ready', () => {
138138
window.setTouchBar(touchBar)
139139
})
140140
```
141+
141142
### Running the above example
143+
142144
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):
143145

144-
1. Save the above file to your computer, named as touchbar.js
145-
2. Install electron via e.g. `npm install electron`
146-
3. Run the example inside electron: `./node_modules/.bin/electron touchbar.js`
146+
1. Save the above file to your computer as `touchbar.js`
147+
2. Install Electron via `npm install electron`
148+
3. Run the example inside Electron: `./node_modules/.bin/electron touchbar.js`
147149

148-
You should then see a new electron window and the app running in your touchbar (or touchbar emulator).
150+
You should then see a new Electron window and the app running in your touch bar (or touch bar emulator).

0 commit comments

Comments
 (0)