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

Function getPaneSourceIdForElement

public/js/fileDragDrop.js:176–181  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

174}
175
176function getPaneSourceIdForElement(el) {
177 const pane = el?.closest?.('.file-list-pane');
178 if (!pane) return '';
179 const paneKey = pane.classList.contains('secondary-pane') ? 'secondary' : 'primary';
180 return window.__frPaneState?.[paneKey]?.sourceId || '';
181}
182
183function getPaneFolderForElement(el) {
184 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