NikkelM / Random-YouTube-Video

A browser extension that allows you to truly randomly shuffle videos from any YouTube channel, offering many customization options.
https://chromewebstore.google.com/detail/random-youtube-video/kijgnjhogkjodpakfmhgleobifempckf
GNU Lesser General Public License v3.0
17 stars 3 forks source link

[Popup] Update the currentChannel in the popup if it is opened when on a different channel #185

Open NikkelM opened 1 year ago

NikkelM commented 1 year ago

The popup will always show the channel that most recently had its yt-navigation-finish event fired. When switching to another YouTube tab, without navigating, this will not update. Perhaps we could update it by checking if the focussed tab is a YouTube tab - but how would we get the channelID for that channel to the popup?