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

Function getActiveSourceId

public/js/fileDragDrop.js:163–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161}
162
163function getActiveSourceId() {
164 const paneKey = window.activePane === 'secondary' ? 'secondary' : 'primary';
165 const paneSource = window.__frPaneState?.[paneKey]?.sourceId || '';
166 if (paneSource) return paneSource;
167 const sel = document.getElementById('sourceSelector');
168 if (sel && sel.value) return sel.value;
169 try {
170 const stored = localStorage.getItem('fr_active_source');
171 if (stored) return stored;
172 } catch (e) {}
173 return '';
174}
175
176function getPaneSourceIdForElement(el) {
177 const pane = el?.closest?.('.file-list-pane');

Callers 2

fileDragStartHandlerFunction · 0.70
folderDropHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected