MCPcopy
hub / github.com/bugy/script-server / findActiveFileElement

Function findActiveFileElement

web-src/tests/unit/file_dialog_test.js:61–63  ·  view source on GitHub ↗
(fileDialog)

Source from the content-addressed store, hash-verified

59 }
60
61 function findActiveFileElement(fileDialog) {
62 return getFileElements(fileDialog).find(element => hasClass(element, 'active'));
63 }
64
65 async function navigateTo(path, fileDialog) {
66 fileDialog.vm.setChosenFile([...path, '']);

Callers 1

Calls 2

hasClassFunction · 0.90
getFileElementsFunction · 0.85

Tested by

no test coverage detected