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

Function getActiveSourceId

public/js/fileActions.js:151–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151function getActiveSourceId() {
152 const paneSource = getActivePaneSourceId();
153 if (paneSource) return paneSource;
154 const sel = document.getElementById('sourceSelector');
155 if (sel && sel.value) return sel.value;
156 try {
157 const stored = localStorage.getItem('fr_active_source');
158 if (stored) return stored;
159 } catch (e) {}
160 return '';
161}
162
163function getSourceNameById(sourceId) {
164 const id = String(sourceId || '').trim();

Callers 4

getRootLabelFunction · 0.70
initCopyMoveSourceSelectFunction · 0.70
confirmSingleDownloadFunction · 0.70
fileActions.jsFile · 0.70

Calls 1

getActivePaneSourceIdFunction · 0.70

Tested by

no test coverage detected