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

Function getPaneFolderForElement

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

Source from the content-addressed store, hash-verified

181}
182
183function getPaneFolderForElement(el) {
184 const pane = el?.closest?.('.file-list-pane');
185 if (!pane) return '';
186 const paneKey = pane.classList.contains('secondary-pane') ? 'secondary' : 'primary';
187 return window.__frPaneState?.[paneKey]?.currentFolder || '';
188}
189
190function getPaneFileDataForElement(el) {
191 const pane = el?.closest?.('.file-list-pane');

Callers 1

fileDragStartHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected