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

Function onUninstall

src/pages/plugins/plugins.js:759–777  ·  view source on GitHub ↗
(pluginId)

Source from the content-addressed store, hash-verified

757 }
758
759 function onUninstall(pluginId) {
760 if (!updates) {
761 plugins.installed = plugins.installed.filter(
762 (plugin) => plugin.id !== pluginId,
763 );
764
765 const plugin = plugins.all.find((plugin) => plugin.id === pluginId);
766 if (plugin) {
767 plugin.installed = false;
768 plugin.localPlugin = null;
769 }
770 }
771
772 // Remove from DOM
773 const existingItem = $list.installed.get(`[data-id="${pluginId}"]`);
774 if (existingItem) {
775 existingItem.remove();
776 }
777 }
778
779 function getLocalRes(id, name) {
780 return Url.join(PLUGIN_DIR, id, name);

Callers 1

uninstallFunction · 0.85

Calls 2

getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected