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

Method initPlugin

src/lib/acode.js:728–732  ·  view source on GitHub ↗

* * @param {string} id plugin id * @param {string} baseUrl local plugin url * @param {HTMLElement} $page

(id, baseUrl, $page, options)

Source from the content-addressed store, hash-verified

726 * @param {HTMLElement} $page
727 */
728 async initPlugin(id, baseUrl, $page, options) {
729 if (id in this.#pluginsInit) {
730 await this.#pluginsInit[id](baseUrl, $page, options);
731 }
732 }
733
734 unmountPlugin(id) {
735 if (id in this.#pluginUnmount) {

Callers 1

loadPluginFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected