mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 13:02:10 +00:00
temp fix for undefined Spicetify.PlaybackControl
This commit is contained in:
parent
b52c9f889d
commit
127f604dd6
1 changed files with 10 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
let current = '1.7'
|
||||
let current = '1.8'
|
||||
|
||||
/* css is injected so this works with untouched user.css from Dribbblish */
|
||||
/* dark theme */
|
||||
|
|
@ -205,10 +205,15 @@ function updateColors(colHex) {
|
|||
|
||||
let coverListenerInstalled = true
|
||||
async function songchange() {
|
||||
// warning popup
|
||||
if (Spicetify.PlaybackControl.featureVersion < "1.1.57")
|
||||
Spicetify.showNotification("Your version of Spotify (" + Spicetify.PlaybackControl.featureVersion + ") is un-supported")
|
||||
|
||||
try {
|
||||
// warning popup
|
||||
if (Spicetify.PlaybackControl.featureVersion < "1.1.57")
|
||||
Spicetify.showNotification("Your version of Spotify (" + Spicetify.PlaybackControl.featureVersion + ") is un-supported")
|
||||
}
|
||||
catch(err) {
|
||||
console.log(err.message);
|
||||
}
|
||||
|
||||
let album_uri = Spicetify.Player.data.track.metadata.album_uri
|
||||
let bgImage = Spicetify.Player.data.track.metadata.image_url
|
||||
if (bgImage === undefined) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue