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

Method removeFromStorage

Extensions/bookmark.js:89–94  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

87 }
88
89 removeFromStorage(id) {
90 const storage = this.getStorage().filter((item) => item.id !== id);
91
92 LocalStorage.set(STORAGE_KEY, JSON.stringify(storage));
93 this.apply();
94 }
95
96 changePosition(x, y) {
97 this.items.style.left = `${x}px`;

Callers 1

constructorMethod · 0.80

Calls 2

getStorageMethod · 0.95
applyMethod · 0.95

Tested by

no test coverage detected