Skip to content

Commit

Permalink
fix: create artist disco key mistype (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani authored Nov 16, 2023
1 parent 70a2678 commit dd74096
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "chorus",
"private": true,
"type": "module",
"version": "1.17.0",
"version": "1.17.1",
"scripts": {
"build": "rollup -c",
"watch": "rollup -c -w"
Expand Down
7 changes: 3 additions & 4 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,11 @@ chrome.runtime.onMessage.addListener(({ key, values }, _, sendResponse) => {
const messageHandler = {
'play.shared': playSharedTrack,
'play.seek': seekTrackToPosition,
'artist-disco': createArtistDiscoPlaylist,
'artist.disco': createArtistDiscoPlaylist,
}
const handlerFn = messageHandler[key]
if (!handlerFn) return

promiseHandler(handlerFn(values), sendResponse)
handlerFn ? promiseHandler(handlerFn(values), sendResponse)
: sendResponse({ state: 'error', error: 'key not not configured'})
return true
})

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"short_name": "Chorus",
"name": "Chorus - Spotify Enhancer",
"description": "Enhance Spotify with controls to save favourite snips, auto-skip tracks, and set global and custom speed. More to come!",
"version": "1.17.0",
"version": "1.17.1",
"manifest_version": 3,
"author": "cdrani",
"action": {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"short_name": "Chorus",
"name": "Chorus - Spotify Enhancer",
"description": "Enhance Spotify with controls to save favourite snips, auto-skip tracks, and set global and custom speed. More to come!",
"version": "1.17.0",
"version": "1.17.1",
"manifest_version": 3,
"author": "cdrani",
"action": {
Expand Down

0 comments on commit dd74096

Please sign in to comment.