MCPcopy Create free account
hub / github.com/error311/FileRise / stashSidebarCardsBeforeSmall

Function stashSidebarCardsBeforeSmall

public/js/dragAndDrop.js:437–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

435
436// -------------------- responsive stash --------------------
437function stashSidebarCardsBeforeSmall() {
438 const sb = getSidebar();
439 if (!sb) return;
440 const ids = Array.from(sb.querySelectorAll('#uploadCard, #folderManagementCard')).map(el => el.id);
441 localStorage.setItem(RESPONSIVE_STASH_KEY, JSON.stringify(ids));
442}
443function readSidebarStash() {
444 try { return JSON.parse(localStorage.getItem(RESPONSIVE_STASH_KEY) || '[]'); }
445 catch (e) { return []; }

Callers 1

enforceResponsiveZonesFunction · 0.85

Calls 1

getSidebarFunction · 0.85

Tested by

no test coverage detected