mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-09 09:42:26 +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 */
|
/* css is injected so this works with untouched user.css from Dribbblish */
|
||||||
/* dark theme */
|
/* dark theme */
|
||||||
|
|
@ -205,9 +205,14 @@ function updateColors(colHex) {
|
||||||
|
|
||||||
let coverListenerInstalled = true
|
let coverListenerInstalled = true
|
||||||
async function songchange() {
|
async function songchange() {
|
||||||
// warning popup
|
try {
|
||||||
if (Spicetify.PlaybackControl.featureVersion < "1.1.57")
|
// warning popup
|
||||||
Spicetify.showNotification("Your version of Spotify (" + Spicetify.PlaybackControl.featureVersion + ") is un-supported")
|
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 album_uri = Spicetify.Player.data.track.metadata.album_uri
|
||||||
let bgImage = Spicetify.Player.data.track.metadata.image_url
|
let bgImage = Spicetify.Player.data.track.metadata.image_url
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue