()
| 872 | } |
| 873 | |
| 874 | function getConfig() { |
| 875 | try { |
| 876 | const parsed = JSON.parse(Spicetify.LocalStorage.get("full-app-display-config") || "{}"); |
| 877 | if (parsed && typeof parsed === "object") { |
| 878 | return parsed; |
| 879 | } |
| 880 | throw ""; |
| 881 | } catch { |
| 882 | Spicetify.LocalStorage.set("full-app-display-config", "{}"); |
| 883 | return {}; |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | function saveConfig() { |
| 888 | Spicetify.LocalStorage.set("full-app-display-config", JSON.stringify(CONFIG)); |