Skip to content

Commit

Permalink
docs: Fix TouchBar API example (electron#16482)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleff authored and akisctx committed Jan 22, 2019
1 parent 2fc702b commit 4b301f5
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions docs/api/touch-bar.md
Expand Up @@ -112,17 +112,19 @@ const finishSpin = () => {
spinning = false
}

const touchBar = new TouchBar([
spin,
new TouchBarSpacer({ size: 'large' }),
reel1,
new TouchBarSpacer({ size: 'small' }),
reel2,
new TouchBarSpacer({ size: 'small' }),
reel3,
new TouchBarSpacer({ size: 'large' }),
result
])
const touchBar = new TouchBar({
items: [
spin,
new TouchBarSpacer({ size: 'large' }),
reel1,
new TouchBarSpacer({ size: 'small' }),
reel2,
new TouchBarSpacer({ size: 'small' }),
reel3,
new TouchBarSpacer({ size: 'large' }),
result
]
})

let window

Expand Down

0 comments on commit 4b301f5

Please sign in to comment.