From 127f604dd6e5ae7a215e0480177da55c1c05672c Mon Sep 17 00:00:00 2001 From: Julien Maille Date: Sat, 18 Sep 2021 10:54:15 +0200 Subject: [PATCH] temp fix for undefined Spicetify.PlaybackControl --- dribbblish-dynamic.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/dribbblish-dynamic.js b/dribbblish-dynamic.js index 4dc4675..642dd5c 100644 --- a/dribbblish-dynamic.js +++ b/dribbblish-dynamic.js @@ -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) {