beaufortfrancois / spotify-hotkeys-chrome-extension

Spotify Web Player Hotkeys Chrome Extension
https://chrome.google.com/webstore/detail/kimlaecdbfehihbiieeaeelbdkahophn
95 stars 29 forks source link

Skip+Previous Track will jump two songs (instead of one) #21

Closed wle8300 closed 5 years ago

wle8300 commented 6 years ago

Seems to register twice whenver you use hotkeys for skip+previous track.

So it'll skip two songs instead of one (as expected)


I'm using Chrome Version 62.0.3202.94 (Official Build) (64-bit)

beaufortfrancois commented 6 years ago

I can't reproduce ;(

  1. Go to https://open.spotify.com/user/spotify/playlist/37i9dQZF1DX0QqahDuqmRY
  2. Start playing audio
  3. Press Alt+Shift+Period to skip song
  4. It goes to the second song, not the third one
wle8300 commented 6 years ago

Hmm. Maybe it’s related to another extensions I’m using… I have a lot of extensions installed. I’ll have to get back to you once I figure it out.

Oh yea. This extension totally rocks. Thanks for making it! I use it everyday! :P

simontb commented 6 years ago

I faced the same issue with two Spotify Tabs open. Looking at your code I am not sure whether this is an issue or intended behavior.

beaufortfrancois commented 5 years ago

If you have two tabs, it makes sense since commands are sent to all tabs: https://github.com/beaufortfrancois/spotify-hotkeys-chrome-extension/blob/f6c5c2ed1e6e2abac79fa1a11322da89fd1dead8/src/background.js#L9