MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / findElement

Method findElement

src/components/fileTree/index.js:325–327  ·  view source on GitHub ↗

* Find an entry element by URL * @param {string} url * @returns {HTMLElement|null}

(url)

Source from the content-addressed store, hash-verified

323 * @returns {HTMLElement|null}
324 */
325 findElement(url) {
326 return this.container.querySelector(`[data-url="${CSS.escape(url)}"]`);
327 }
328
329 /**
330 * Refresh the current directory

Callers 1

removeEntryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected