Skip to content

Commit

Permalink
Switched like/dislike positions
Browse files Browse the repository at this point in the history
Switched like/dislike positions to match youtube musics layout
  • Loading branch information
Sem Vissscher authored and Sem Vissscher committed Dec 16, 2020
1 parent ba3779d commit f71e0e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/touchbar/back.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const titleSelector = '.title.style-scope.ytmusic-player-bar';
const imageSelector = '#layout > ytmusic-player-bar > div.middle-controls.style-scope.ytmusic-player-bar > img';

// These keys will be used to go backwards, pause, skip songs, like songs, dislike songs
const keys = ['k', 'space', 'j', '+', '_'];
const keys = ['k', 'space', 'j', '_', '+'];

const presskey = (window, key) => {
window.webContents.sendInputEvent({
Expand Down Expand Up @@ -67,10 +67,10 @@ module.exports = win => {
label: '⏭'
}),
new TouchBarButton({
label: '👍'
label: '👎'
}),
new TouchBarButton({
label: '👎'
label: '👍'
})
],
change: i => presskey(win, keys[i])
Expand Down

0 comments on commit f71e0e9

Please sign in to comment.