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

Function getPaneFileDataForElement

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

Source from the content-addressed store, hash-verified

188}
189
190function getPaneFileDataForElement(el) {
191 const pane = el?.closest?.('.file-list-pane');
192 const paneKey = pane && pane.classList.contains('secondary-pane') ? 'secondary' : 'primary';
193 const state = window.__frPaneState?.[paneKey];
194 if (state && Array.isArray(state.fileData)) return state.fileData;
195 return [];
196}
197
198function getTransferTotalsForNames(names, fileList) {
199 const list = Array.isArray(names) ? names : [];

Callers 1

fileDragStartHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected