docs: Fix TouchBar API example (#16482)
This commit is contained in:
parent
033efdcaa1
commit
a9ac75c1f9
1 changed files with 13 additions and 11 deletions
|
@ -112,7 +112,8 @@ const finishSpin = () => {
|
|||
spinning = false
|
||||
}
|
||||
|
||||
const touchBar = new TouchBar([
|
||||
const touchBar = new TouchBar({
|
||||
items: [
|
||||
spin,
|
||||
new TouchBarSpacer({ size: 'large' }),
|
||||
reel1,
|
||||
|
@ -122,7 +123,8 @@ const touchBar = new TouchBar([
|
|||
reel3,
|
||||
new TouchBarSpacer({ size: 'large' }),
|
||||
result
|
||||
])
|
||||
]
|
||||
})
|
||||
|
||||
let window
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue