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

Function install

src/pages/plugin/plugin.js:223–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 }
222
223 async function install() {
224 try {
225 await Promise.all([
226 loadAd(this),
227 installPlugin(plugin.source || id, plugin.name, purchaseToken),
228 ]);
229 if (onInstall) onInstall(plugin);
230 installed = true;
231 update = false;
232 if (!plugin.price) {
233 await helpers.showInterstitialIfReady();
234 }
235 render();
236 } catch (err) {
237 window.log("error", err);
238 helpers.error(err);
239 }
240 }
241
242 async function uninstall() {
243 try {

Callers 1

onpurchaseFunction · 0.70

Calls 6

onInstallFunction · 0.85
logMethod · 0.80
loadAdFunction · 0.70
renderFunction · 0.70
installPluginFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected