()
| 15 | let playbarButton = null; |
| 16 | |
| 17 | function getConfig() { |
| 18 | try { |
| 19 | const parsed = JSON.parse(Spicetify.LocalStorage.get("shufflePlus:settings")); |
| 20 | if (parsed && typeof parsed === "object") { |
| 21 | return parsed; |
| 22 | } |
| 23 | throw ""; |
| 24 | } catch { |
| 25 | Spicetify.LocalStorage.set("shufflePlus:settings", "{}"); |
| 26 | return { |
| 27 | artistMode: "all", |
| 28 | artistNameMust: false, |
| 29 | enableQueueButton: false, |
| 30 | }; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | const CONFIG = getConfig(); |
| 35 | saveConfig(); |