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

Function persistPaneSource

public/js/fileListView.js:1789–1799  ·  view source on GitHub ↗
(pane, sourceId)

Source from the content-addressed store, hash-verified

1787}
1788
1789function persistPaneSource(pane, sourceId) {
1790 const key = PANE_SOURCE_STORAGE_KEYS[normalizePaneKey(pane)];
1791 if (!key) return;
1792 try {
1793 if (!sourceId) {
1794 localStorage.removeItem(key);
1795 return;
1796 }
1797 localStorage.setItem(key, sourceId);
1798 } catch (e) { /* ignore */ }
1799}
1800
1801function getPaneSourceId(pane) {
1802 try {

Callers 1

savePaneStateFunction · 0.85

Calls 1

normalizePaneKeyFunction · 0.85

Tested by

no test coverage detected