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

Function getActiveSourceId

public/js/folderManager.js:146–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144let __moveFolderSourcesCache = null;
145
146function getActiveSourceId() {
147 const paneKey = window.activePane === 'secondary' ? 'secondary' : 'primary';
148 const paneSource = window.__frPaneState?.[paneKey]?.sourceId || '';
149 if (paneSource) return paneSource;
150 const sel = document.getElementById('sourceSelector');
151 if (sel && sel.value) return sel.value;
152 try {
153 const stored = localStorage.getItem('fr_active_source');
154 if (stored) return stored;
155 } catch (e) {}
156 return '';
157}
158
159function getPaneKeyForSourceId(sourceId = '') {
160 const id = String(sourceId || '').trim();

Callers 15

getFolderTreeStateKeyFunction · 0.70
getLastOpenedFolderKeyFunction · 0.70
isTrashDisabledForSourceFunction · 0.70
isFtpSourceIdFunction · 0.70
getRootLabelFunction · 0.70
getRootCrumbLabelFunction · 0.70
loadMoveFolderTargetsFunction · 0.70
getFolderCapabilitiesFunction · 0.70
chooseInitialFolderFunction · 0.70
getCountTimeoutMsFunction · 0.70
fetchFolderCountsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected