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

Function handleClick

src/lib/openFolder.js:953–957  ·  view source on GitHub ↗

* * @param {"file"|"dir"|"root"} type * @param {string} url

(type, uri)

Source from the content-addressed store, hash-verified

951 * @param {string} url
952 */
953function handleClick(type, uri) {
954 if (!helpers.isFile(type)) return;
955 openFile(uri, { render: true });
956 Sidebar.hide();
957}
958
959/**
960 * Insert a file into the list

Callers 2

expandListFunction · 0.70
handleItemsFunction · 0.70

Calls 1

hideMethod · 0.45

Tested by

no test coverage detected