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

Function initValue

Extensions/trashbin.js:151–158  ·  view source on GitHub ↗
(item, defaultValue)

Source from the content-addressed store, hash-verified

149 }
150
151 function initValue(item, defaultValue) {
152 try {
153 const value = JSON.parse(Spicetify.LocalStorage.get(item));
154 return value ?? defaultValue;
155 } catch {
156 return defaultValue;
157 }
158 }
159
160 // Settings Variables - Initial Values
161 let trashbinStatus = initValue("trashbin-enabled", true);

Callers 1

trashbin.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected