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

Function getGlobalActiveSourceId

public/js/fileListView.js:1591–1604  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1589}
1590
1591function getGlobalActiveSourceId() {
1592 try {
1593 if (typeof window.__frGetActiveSourceId === 'function') {
1594 return window.__frGetActiveSourceId() || '';
1595 }
1596 } catch (e) { /* ignore */ }
1597 const sel = document.getElementById('sourceSelector');
1598 if (sel && sel.value) return sel.value;
1599 try {
1600 const stored = localStorage.getItem('fr_active_source');
1601 if (stored) return stored;
1602 } catch (e) { /* ignore */ }
1603 return '';
1604}
1605
1606function getSourceNameById(sourceId) {
1607 const id = String(sourceId || '').trim();

Callers 14

isFtpSourceFunction · 0.85
isSlowRemoteSourceFunction · 0.85
getRootLabelFunction · 0.85
getRootCrumbLabelFunction · 0.85
getPaneSourceIdFunction · 0.85
fileListView.jsFile · 0.85
ensurePaneStateFunction · 0.85
syncPaneStateFromGlobalsFunction · 0.85
syncActiveSourceToPaneFunction · 0.85
refreshTreeForSourceFunction · 0.85
setActivePaneFunction · 0.85
paneDropHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected