temp fix for undefined Spicetify.PlaybackControl

This commit is contained in:
Julien Maille 2021-09-18 10:54:15 +02:00
parent b52c9f889d
commit 127f604dd6

View file

@ -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) {