Skip to content

Commit

Permalink
Merge pull request #312 from thatcomputerguy0101/thatcomputerguy0101-…
Browse files Browse the repository at this point in the history
…touchbar-api-patch

Update to current TouchBar Electron API
  • Loading branch information
suda authored Oct 15, 2020
2 parents a2610c2 + 4f871c2 commit 6496a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/touch-bar-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class TouchBarManager {
const items = this.buttons
.sort((a, b) => a.priority - b.priority)
.map(button => button.touchButton);
let touchBar = new TouchBar(items);
let touchBar = new TouchBar({items});
atom.getCurrentWindow().setTouchBar(touchBar);
this._updateDebounce = null;
}
Expand Down

0 comments on commit 6496a6a

Please sign in to comment.