MCPcopy
hub / github.com/spicetify/cli / getConfig

Function getConfig

Extensions/shuffle+.js:17–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 1

shuffle+.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected